I am trying to pass jquery variable value to input text. I tried the below and getting message "The left-hand side of an assignment must be a variable". How to send jquery variable value to input box?
//Input is as below
<input type="hidden" id="rowValues" value="" name="rowValues">
//jquery is as below. rowData variable value should be passed to input
var rowData = JSON.stringify(rows); ;
$("#rowValues").val() = rowData;
do:
$("#rowValues").val(rowData);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With