forum

Home / DeveloperSection / Forums / Input value hidden using HTML and JavaScript

Input value hidden using HTML and JavaScript

Anonymous User 3431 16-Aug-2013
Hi developers!

I have this input:

<input id="tag1" type="text" name="tags" class="tags" value="@Model.list" />

and I want to get this input value in a hidden input, so I used this:

<input type="hidden" name="tag" value="tags" />

Instead of getting the true value of the first input, I only get the string "tags"! Can you please tell me how to obtain the true value of the first input in my hidden input?

 Thanks!


Updated on 17-Aug-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By