176
rated 0 times
[
180]
[
4]
/ answers: 1 / hits: 25880
/ 9 Years ago, fri, february 13, 2015, 12:00:00
Here I have many input text fields with same class like
<input type=text class=MyClass></input>
<input type=text class=MyClass></input>
<input type=text class=MyClass></input>
My requirement is to check wheather all input fields of this class is empty or not.
I've tried this
if(!('.MyClass').val()){
alert(empty);
}
But it doesn't make any result. Can anyone help?
More From » jquery