samedi 21 novembre 2015

Get checkbox value in a variable in Ajax

I am trying to retrieve a checkbox value (If its checked or not) in AJAX in vb.net). But cannot seem to get the value. I am using the following method.

var myCheckBoxValue= $('#<%=myCheckBox.ClientID %>').val();

"myCheckBox" is the name of my checkbox Any help will be appreciated. Thanks




Aucun commentaire:

Enregistrer un commentaire