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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -