I am trying to add a hyperlink to a dropdron menu. The menu was created dynamically but the last option value and text are always going to be ‘add new job’. I want the page to be redirected when the use clicks that option. I have Google it but haven’t found a good solution yet.
<select name='job'>
<option value='value1'>value1</option>
<option value='value2'>value2</option>
<option value='value3'>value3</option>
//the above data are generated by server-side code.
<option value='www.sample.com'>add new job</option>
//I want the page to be redirected to the sample.com when user click the option.
</select>
Implement a click handler and check for value of the selection option and redirect,
DEMO
Try,