Scooby08 Posted August 9, 2008 Share Posted August 9, 2008 Can anybody tell me what's wrong with this code? <form name="formAdd"> <input type="radio" name="item_id_wp" value="5" onClick="document.formAdd.wedding_package_1.value='1';" /> <input type="hidden" name="wedding_package_1" value="" id="qty_item_1" /> </form> Quote Link to comment Share on other sites More sharing options...
Psycho Posted August 9, 2008 Share Posted August 9, 2008 Why do you think something is wrong? I can make an "assumption" of what I think it's supposed to do, but you don't state what the script IS doing as opposed to what you EXPECT it should be doing. My assumption is that if you click the radio button field, then the value of '1' should be populated into the hidden field. If that's what it is supposed to do, then it works fine for me (tested by just changing the hidden field to a text field). If there is something else it is supposed to do you need to provide more details. Quote Link to comment Share on other sites More sharing options...
Scooby08 Posted August 9, 2008 Author Share Posted August 9, 2008 I am sorry for the lack of information.. I figured out why it wasn't working.. It was in a loop so the loop was causing it not to work for some reason.. Any ways I found another way around my problem.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.