Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rasmit on Jun 10, 2009 05:27
open dhtmlx forum
Getting the value of a radio button

Hi,
How do i get the value of a radio buton on select or deselect of the radio button ?

thanks,
Rasmit.
Answer posted by dhxSupport on Jun 10, 2009 05:31
You can use "onCheck" event. This event occurs after the state of a checkbox was changed. onCheck event passes the following parameters: 
rId - id or the row;
cInd - index of the cell;
state- state of the checkbox/radiobutton.
  grid.attachEvent("onCheck", function(rId,cInd,state){});