Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2720

Re: radio button issue in SSCE

$
0
0

Hi Naga,

 

When you have events on both the radio buttons when you select the other radio button 1st currently selected radio buttons deselect will happen, so event gets fired because of that. Hence you observe both events are being called on click of 1 Radio button.

 

You can over come this in the following way.

 

 

function firstEvent(oEvent){

    if(oEvent.getParameter('selected')//if the radio button is selected

alert("Event 1");

}

function secondEvent(oEvent){

        if(oEvent.getParameter('selected') ) //if the radio button is selected

alert("Event 2");

}

 

For Default Selection you can use the following method.

 

RadioButton0_c0c0.setSelected(true);

 

add that in the 1st line of your custom code.

 

Regards,

Sriram


Viewing all articles
Browse latest Browse all 2720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>