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 -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -