bobi_cute Posted March 20, 2006 Share Posted March 20, 2006 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 More sharing options...
scott100 Posted March 20, 2006 Share Posted March 20, 2006 Like this you mean? http://www.w3schools.com/dhtml/tryit.asp?f...l_event_onkeyup Link to comment Share on other sites More sharing options...
Webworldx Posted March 20, 2006 Share Posted March 20, 2006 Isn't it just the onChange event? And 500 combo boxes? That seems a little excessive? Link to comment Share on other sites More sharing options...
bobi_cute Posted March 20, 2006 Author Share Posted March 20, 2006 yep, in kinda i think so.. Well maxium is 500 lines can be 20 lines as well :)its comboboxes, and checkboxes. But need the onclick event.. but yes i think the function is what i was looking for. Link to comment Share on other sites More sharing options...
bobi_cute Posted March 20, 2006 Author Share Posted March 20, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now