Jquery to Access Value of Radio Group
673017Feb 13 2009 — edited Feb 16 2009Dear all,
I have tried various ways to get the checked value of a radio group in Apex but come out empty handed. For example, the name of the radio group is "LICENCE_TYPE" as created in APEX, I have a onClick function to run in Javascript but got nothing.
var lic_val = $('input\[name=LICENCE_TYPE\]:checked').val()
but If I do the following, it worked. The p_v48 is the "name" in the HTML source and the LICENCE_TYPE is the "id" in HTML source.
var lic_val = $('input\[name=p_v48\]:checked').val()
Can anyone help me here as APEX does not expose the "name" ? Thanks.
Edited by: KA Kueh on Feb 15, 2009 7:13 PM
Edited by: KA Kueh on Feb 15, 2009 7:14 PM