Input value hidden using HTML and JavaScript

Jeet Verma

Total Post:110


Posted by  Jeet Verma
 2622  View(s)
Rate this:
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?



Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.