I have the following html snippit;
<input name='first' class="foo" />
<input name='second' class="foo bar" />
<input name='third' class="foo" />
I want to set the value of a specific element, but i'm unable to select the right one. This is whar i've tried:
jQuery('.bar').val('selected');