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('disabled', true); > } else { > $('input:text').attr('disabled', false); > } > }); > });
Thanks for this, I updated the selectors for #my_input_id and it works an absolute treat! Thank you. Robert