I am stuck over a question in which I got to make a Hidden Text box to store a value.
But I have seen that JQuery is capable to add some value to a Hidden Text box.
I am not sure which is the best way to hide the value which will be stored to the Database.
Please look at the codes below:
Traditional way:
<input type="hidden" id="data[Test][quote]" value="hello" />
Using JQuery:
$(document).ready(function(){
$("#data\\[Test\\]\\[quote\\]").val("hello");
});
<input type="hidden" id="data[Test][quote]" />
Please advise.
1 Answer