I have some asp textboxs in a div container. I just want to clear those when i am clicking the CLEAR button.
I say common class 'text' for all textboxes and then wrote this jQuery
$(".text").text("");
It's not working ..
How to do this ? I need the most efficient code .
If you need to clear text boxes values alone, you can change the code like this:
or
Notes:
You should use val() instead of text().
You are asking for efficient code - and using class selector is not efficient.
Either use id, or add tag name.
this will work successfully