Archives
-
To execute Javascript from the Button click and then run the server side code.
An easy ways to do this is to call the __doPostBack() function of the javascript. An example is as follows:
-
How to access Radio Button List in the Javascript
// ***** First Method *****//
var rdolist = document.getElementsByName("rdolist");
if (rdolist[1].checked)
txtMessage.value = "First";
if (rdolist[2].checked)
txtMessage.value = "Second";
if (rdolist[3].checked)
txtMessage.value = "Third";