<select onchange="$(self).siblings('input[type=text]').val( $(self).val() ); $(self).siblings('input[type=checkbox]').attr('checked','checked')">
that does not work
before the select box, there are these inputs (examples):
<input type="text" value="" id="product[14][value]" name="product[14][value]">
<input type="checkbox" value="1" id="product[14][enabled]" name="product[14][enabled]">
after debugging in firebug, i found that it is in fact finding the siblings, and the part that is failing is filling the text field with the select's value:
.val( $(self).val() );
what's wrong with it? thanks!