Reputation: 3885
I am trying to do this:
$('input:text','textarea').focus(function () {
$(this).removeClass('wrong');
if (this.value == this.defaultValue){
$(this).val('');
}
But $('input:text','textarea')
wont work as a selector. What am I doing wrong?
Upvotes: 12
Views: 17291