All
I have the following form input element:
<input name="payment_amount" type="text" id="payment_amount" value="" disabled>
I then manipulate the value of this form element by using jQuery:
jQuery(document).on('click','#remaining_balance',function(){
jQuery("#payment_amount").attr('disabled', 'disabled');
send_amount = jQuery("#value_to_transfer").val();
jQuery("#payment_amount").val(send_amount);
});
When I click on that radio button it populates the value into my payment_amount field but when I submit the form the value doesn’t get passed to my receiving page. Any idea why that it?
Thanks in advance.
Disabled elements are not sent to the server. Enable it, send the data, then disable it again.