View Single Post
Old 03-21-2012, 05:46 PM   PM User | #21
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
If you're going to put in the literal string "zfield_" then you will need to use quotes (single quotes in this particular case) around it like so:
Code:
<select id="zfield_1" class="primary" onchange="ajaxReq(1, this.value, 'zfield_');" tabindex="1" name="Test Field">
<option...

And then you still have to update your javascript function in your external .js file to use this newly added parameter or else it will still choke with "preid is not defined."

As for the other questions...let's take this one step at a time.
__________________
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
Seek and you shall find... basically:
validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting
Rowsdower! is offline   Reply With Quote