Login control's login button enabled/disabled property in asp.net -
just wondered how enable/disable "log in" button on login control based on if user name , password textboxes null or not ? thanks..
hi jack first convert login control template , add following jquery code in header section of page
$(document).ready(function () { $('input[type="submit"]').attr('disabled', 'disabled'); $('input[type="text"]').keypress(function () { if ($(this).val != '') { $('input[type="submit"]').removeattr('disabled'); } }); });
Comments
Post a Comment