Welcome Guest, Not a member yet? Register   Sign In
using PHP id in Javascript
#2

[eluser]deed02392[/eluser]
You're creating multiple SELECT elements in this code, not one select element with <option>'s, which is what I think you are supposed to be doing.

You need to read about what the HTML for a proper SELECT looks like.

Then read about accessing options in a SELECT from JavaScript (preferably with a library, like jQuery).

This should give you enough knowledge to achieve what you want.


Messages In This Thread
using PHP id in Javascript - by El Forum - 08-19-2012, 03:12 PM
using PHP id in Javascript - by El Forum - 08-21-2012, 01:26 AM
using PHP id in Javascript - by El Forum - 08-21-2012, 05:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB