Jump to content

field update


bobi_cute

Recommended Posts

I have a php script what prints out about 400 lines with comboboxes and textfields.Now i was think it would be easy if i could for an example change the content of combobox[5] and it would update all 499 comboboxes. without reload the holy page again.is there an easy way to that in JS ?

Link to comment
Share on other sites

Hersteller<br><select name='hersteller1'><option value='A'>A</option><option value='B'>B</option></select><span style='color:black; cursor:hand;' onclick='setherst(f.hersteller1.value);'><b>[+]</b> Set</span><br><select name='hersteller2'><option value='A'>A</option><option value='B'>B</option></select><span style='color:black; cursor:hand;' onclick='setherst(f.hersteller2.value);'><b>[+]</b> Set</span>[...]function setherst(val){ f.hersteller1.value=val; f.hersteller2.value=val;}But that dont work, i think becouse im a to much off a noob :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...