Posted By

sveggiani on 02/12/09


Tagged

jquery not-mine


Versions (?)

Who likes this?

9 people have marked this snippet as a favorite

jamesming
fabianwizenfeld
VaiT
umang_nine
delikassap
vali29
fenta23
vkolev
laurentzziu


enabling submit button if text entered


 / Published in: jQuery
 

URL: http://cakebaker.42dh.com/2009/01/13/enabling-submit-button-if-text-entered/

  1. $('#username').keyup(function() {
  2. $('#submit').attr('disabled', !$('#username').val());
  3. });

Report this snippet  

You need to login to post a comment.