I’d like get a string with the value from some Textbox (with a specific class) and the values should be separate by a comma.
Any idea ?
Thanks,
Update1 :
I have this
<input type="text" id="A" class="test" value="aa">
<input type="text" id="B" class="test" value="bb">
I’d like this : aa,bb
get the value then use split.
you can do
var str = $('#someTextbox').val()then proceed as above.that is if I understood you clearly.
In your update, you can do it this way,
strnow holds all the values found separated by comma, here’s a demo cause I’m not good at explaining… 🙂