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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

Maven Javadoc 'Cannot find default setter' and fails -

javascript - SAPUI5 Filling SmartTable with OData from XMII -