Welcome Guest, Not a member yet? Register   Sign In
form_dropdown()
#6

[eluser]BigJobbies[/eluser]
Thanks for the link .. I have had a look at the code

Code:
function changeSelect() {
var num_selected = $('#myselect').val();
// do stuff
}


HTML STUFF...
<select id="myselect" onchange="changeSelect()">
<option>xxx</option>
...
</select>

The only problem i would see, is giving the select an id ... using the form helper, is there a way to give it an id, not just a name ?

Sorry, im a bit of a newbie with this CI thing

Cheers,


Messages In This Thread
form_dropdown() - by El Forum - 06-23-2008, 10:42 PM
form_dropdown() - by El Forum - 06-23-2008, 11:44 PM
form_dropdown() - by El Forum - 06-23-2008, 11:48 PM
form_dropdown() - by El Forum - 06-23-2008, 11:50 PM
form_dropdown() - by El Forum - 06-23-2008, 11:55 PM
form_dropdown() - by El Forum - 06-24-2008, 01:30 AM
form_dropdown() - by El Forum - 06-24-2008, 03:51 AM
form_dropdown() - by El Forum - 06-24-2008, 06:15 AM
form_dropdown() - by El Forum - 06-24-2008, 09:09 AM
form_dropdown() - by El Forum - 06-24-2008, 09:19 AM
form_dropdown() - by El Forum - 06-24-2008, 09:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB