Within this section, I have multiple input text fields all sharing the same class:
<input type="text" class="MyClass"></input>
<input type="text" class="MyClass"></input>
<input type="text" class="MyClass"></input>
My goal is to determine whether or not all input fields with this class are empty. I attempted the following code:
if(!('.MyClass').val()){
alert("empty");
}
Unfortunately, this did not produce the desired result. Can someone provide guidance?