Guys I have a form that uses a simple javascript to get a value from the picklist, then replace the value in an input field so that when submit is clicked, it sends the correct information to the server. My issue is that I had this working and not it isn't for some reason. Maybe one of you can help me see an error I made.
the script:
<script>
$(function() {
$("#display_value option").click(function(){
$("#get_value").val($("#display_value").val());
});
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.
Bookmarks