[jQuery] Re: enable/disable to text inputs with checkbox

2008-09-01 Thread Robert Rawlins
Hi Karl, > This is very generic, so you'll have to be more specific with > your selectors, but it should give you an idea of how to do this: > > $(document).ready(function() { >  $('input:checkbox').click(function() { >    if ($(this).is(':checked')) { >      $('input:text').val('').attr('disabl

[jQuery] Re: enable/disable to text inputs with checkbox

2008-09-01 Thread Karl Swedberg
This is very generic, so you'll have to be more specific with your selectors, but it should give you an idea of how to do this: $(document).ready(function() { $('input:checkbox').click(function() { if ($(this).is(':checked')) { $('input:text').val('').attr('disabled', true); } e