jQuery all inputs with unique id

Posted by d3020 on Stack Overflow See other posts from Stack Overflow or by d3020
Published on 2010-04-25T05:28:02Z Indexed on 2010/04/25 5:33 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

I have some textboxes on a webform that have ids like this: txtFinalDeadline_1 txtFinalDeadline_2 txtFinalDeadline_3 txtFinalDeadline_4

In my jQuery how do I find all of those in order to assign a value to them. Before I had the underscore and they were all named txtFinalDeadline I could do this and it worked. $(this).find("#txtFinalDeadline").val(formatDate);

However, that was when they were all named the same thing. Now I have the _x after the name and I'm not sure how to go about assigning that same value as before to them.

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about unique