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

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -