86
rated 0 times
[
90]
[
4]
/ answers: 1 / hits: 17062
/ 13 Years ago, fri, january 20, 2012, 12:00:00
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?
More From » jquery