How to validate textbox and dropdownlist using jquery?

Posted by Hariinakoti under jQuery on 4/23/2013 | Points: 10 | Views : 29415 | Status : [Member] | Replies : 1
Hi All,
How to validate textbox and dropdownlist using jquery?

Thanks&Regards
Hari

Thanks & Regards
Hari



Responses

Posted by: Rimi1289 on: 4/26/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>


<script>
$('#Button').click(function() {

if ($("#TextBox").val() == "") { alert("Please enter a value and then proceed."); $('#TextBox').focus(); return false; }

});
</script>


Please mark as answer, if it was of any help to you.

Also check for more JQuery and Asp.Net stuff. http://www.encodedna.com/category/jquery/

Hariinakoti, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response