Skip to content

Instantly share code, notes, and snippets.

@richardW8k
Last active January 1, 2016 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardW8k/8072843 to your computer and use it in GitHub Desktop.
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
<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