im trying this format:
$("#<%= hfWidth.UniqueID %>").val($("#drag").attr("offsetWidth"));
to fill the hidden field with client-side values
but when I do postback, the values doesn't seem to be saved.
help
im trying this format:
$("#<%= hfWidth.UniqueID %>").val($("#drag").attr("offsetWidth"));
to fill the hidden field with client-side values
but when I do postback, the values doesn't seem to be saved.
help
If you want to get params from the server side, you should use name instead of id attribute.
And your code should work :
$("#elementId").val("value");