I have a hidden field in my view. I have list of strings that i would like to put as comma separated values in to hidden field. I am trying to access the hidden field. Is it possible? Any other best practice?
2 Answers
Have you tried something like
$('input[name=hiddeninputname]').val(theValue);
2 Comments
Mike Perrenoud
+1 - another option might be the
# syntax. $('#hiddenFieldId').val(theValue);.FirstCape
Or if it is a
runat="server" hiddenfield use $('#' + '<%= hiddenFieldId.ClientID %>').val(theValue);