I have two drop down boxes.
<select id="brand">
<option id="20">Honda</option>
<option id="22">Maruti</option>
</select>
<select id="model">
<option id="50">City</option>
<option id="51">Alto</option>
<option id="52">Amaze</option>
<option id="53">Civic</option>
<option id="54">Swift</option>
<option id="55">Ritz</option>
</select>
Depending on the brand selected I have to load the model drop down with appropriated values. If user select Honda from brand then the model drop down should only contain(display) City, Amaze, and Civic values. 
Since the option id are dynamically created I can't access the option via its id.There is no need to add new options, because all options are there. So I only need to show/hide options in model drop down.
I am confused because I can't access the option via its id(they are dynamically created), I can only access by its text.
How can I do this?? Please help me...