Suppose if you want to validate a Radcombobox on the client side and need to show some border around the combox in javascript , you can achive it using the following script.
var Cbox = $find("<%= cmbCallReason.ClientID %>");
if (Cbox.get_value() == null || Cbox.get_value == "") {
$(Cbox._element).find('table:first').css("border", "1px solid #ff0000");
else
$(Cbox._element).find('table:first').css("border", "");
var Cbox = $find("<%= cmbCallReason.ClientID %>");
if (Cbox.get_value() == null || Cbox.get_value == "") {
$(Cbox._element).find('table:first').css("border", "1px solid #ff0000");
else
$(Cbox._element).find('table:first').css("border", "");
0 comments:
Post a Comment