on 07-02-2007 9:24 AM
Hi
I want to check which radio button in my htmlb radio buttongroup is selected.
I have tried to
alert(eval(func("myButtonGroup"+htmlb_radiobuttonmodifier.substring(3,7)+"1")));
but alert only shows 'undefined'.
Is there any way to actually check what exactly I must inside "" in eval(func(""))?
thanks in advance
Anton Kruse
Hi,
First call a javascript function on selection of a radio button and inside that function write the following code.
<script language="javascript">
function checkRadio() {
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
//you have to use the name of radio group
var rb1 = eval(func("myButtonGroup" +
htmlb_radiobuttonmodifier.substring(3,7)+ "1"));
alert(rb1.getValue());
alert(rb1.getChecked());
}
</script>
Regards,
Tamil K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.