View Single Post
Old 01-16-2007, 10:57 AM   #2 (permalink)
StupidScript
Senior Member
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 663
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
Hmmm. It looks like the Javascript onchange event is telling your select element to adopt the value of ... whatever you selected in that element. There's no need for Javascript, here, that's default select element behavior. You haven't included anything else, so it doesn't do anything else.

Are you trying to execute an AJAX routine that populates the table values with values drawn from a db when the select element is changed? Your code as posted doesn't go far enough. The onchange event needs to trigger the AJAX routine. As it is, there's nothing wrong with this except the extraneous script.

All that aside, Javascript can seem pretty evil, at times.
StupidScript is offline   Reply With Quote