Last active
January 1, 2016 01:29
-
-
Save richardW8k/8072843 to your computer and use it in GitHub Desktop.
set's value of radio product field other choice to value entered in fake text field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input id="choice_1_3_other" type="text" value="" class="medium ginput_amount"> | |
<script> | |
jQuery('#choice_1_3_other').change(function() { | |
var $other = jQuery('#choice_1_3'); | |
var val = $other.val().split("|"); | |
$other.val( val[0] + '|' + gformToNumber(jQuery(this).val()) ); | |
gformCalculateTotalPrice(formId); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment