I am trying to get all empty text boxes on my page using jQuery. Somehow I am not able to get all the text boxes that are empty.
I have three text boxes like this
<input type="text" class="test" />
<input type="text" class="test" />
<input type="text" class="test" />
$(".test[value='']") -- this does not returns anything.
if i have this
<input type="text" class="test" value="a" />
<input type="text" class="test" />
<input type="text" class="test" />
$(".test[value='a']") -- this returns one control which is correct.
$(".test[value='']") -- this still returns nothing.
if I type "a" in the second textbox then $(".test[value='a']") -- this still returns only one control.
What wrong am I doing here?