c# - How to pass a hidden variable value to href onclick function -
i have hidden variable stores id. in view have href tag calling function with need send id paramater.
my hidden variable:
<input type="hidden" id="cid" value="@model.cid"> < href="#!" onclick="opendlg('@item.name', 'here want hidden variable value'") >/<a>
please help
Comments
Post a Comment