Can I add additional parameters to the below submit function without adding hidden_fields in the form and ajax in rails6
$("#product_form").submit()
Please help. Thanks
Can I add additional parameters to the below submit function without adding hidden_fields in the form and ajax in rails6
$("#product_form").submit()
Please help. Thanks
The below code will append a hidden field with value just before submitting the form
$("#product_form").append("`<input type='hidden' name='product_order' value='"+product_order+"' >`")
The hidden field will remain in the form if the form is not reloading during form submission