Jump to content

[SOLVED] What's wrong with this code??


Scooby08

Recommended Posts

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.