Should be an easy fix, but...
The relevant form data:
<form name="Booking" action="form/capture.php" method="post" accept-charset="utf-8">
<input id="get_value" type="hidden" name="publicid" value="" />
<input type="hidden" name="name" value="Booking"/>
<td align="right"><label >Who is your agent?</label></td>
<select name="label:Agent" required="true" id="display_value">
<option value="e023f0f7">Please Choose</option>
As you can see above, the input "publicid" is supposed to grab the value from the pick-list based on the option chosen. The pick-list is id "display_value" and the input is id "get_value". What am I missing???
If I put the value from the option in the input field (for example "e023f0f7") into the value of the input field (such as value="e023f0f7"), the form saves the information to the correct place so I know that the script is the issue.
I can't really see anything wrong... Try alerting what $("#display_value").val() is inside your click event handler.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)