Hello all,
I have a dialog window with a jqgrid. Wihin the jqgrid I have. multiple dropdows, one for each of the 50 states. And each state takes a different row. Depending on what is going on from output in a database each one of those states is to have a different option selected in their respective dropdown.
My problem is both, the select box it self has an id, and each option within the select box has its own id. Is there any function within jquery that will allow to me access the id of the selectbox and alter an attribute of an option with a different id. All in a single command?
I have tried using PHP to sovle this problem but have failed.
Any help would be apreciated.
Id post the code, but its in an MVC framework and ITS A LOT!!!
but a basic break down of how it looks goes as such:
<table>
<tr>
<td> New York</td>
<td>
<select id ='State'>
<option id='tax_code' value='tax_code'> </option>
</td>
</tr>
</table>
//this is done once for each of the states!!