I was wondering if anyone had any good methods for this problem.
I have a drop down box that is generated:
Status: <select name="tt_ticket statusid" class="swiftsel ect"><option
value="1" style="" selected="selec ted">Open</option>
<option value="2" style="">On Hold</option>
<option value="3" style="">Closed </option>
<option value="5" style="">Awaiti ng Customer Response</option>
<option value="4" style="">Potent ially Resolved</option>
<option value="6" style="color: teal;">On Hold - potential future
release</option>
<option value="7" style="">Potent ially Resolved, Next Release</option>
<option value="9" style="">Fixed - Next Release</option>
<option value="10" style="">Intern al Change</option>
</select>
The website I am doing this with is pretty complicated and has AJAX
and PHP OOP running everywhere.
I need to have the drop down box automatically select the value 5 - I
have already located the event where I want this to take place - but I
am not sure how I would go about making a drop down box select an
option after it has been written to the page.
Maybe with Javascript?
I have a drop down box that is generated:
Status: <select name="tt_ticket statusid" class="swiftsel ect"><option
value="1" style="" selected="selec ted">Open</option>
<option value="2" style="">On Hold</option>
<option value="3" style="">Closed </option>
<option value="5" style="">Awaiti ng Customer Response</option>
<option value="4" style="">Potent ially Resolved</option>
<option value="6" style="color: teal;">On Hold - potential future
release</option>
<option value="7" style="">Potent ially Resolved, Next Release</option>
<option value="9" style="">Fixed - Next Release</option>
<option value="10" style="">Intern al Change</option>
</select>
The website I am doing this with is pretty complicated and has AJAX
and PHP OOP running everywhere.
I need to have the drop down box automatically select the value 5 - I
have already located the event where I want this to take place - but I
am not sure how I would go about making a drop down box select an
option after it has been written to the page.
Maybe with Javascript?
Comment