Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
36
rated 0 times [  40] [ 4]  / answers: 1 / hits: 58833  / 10 Years ago, wed, november 26, 2014, 12:00:00

I want to pass the value of input tag as parameter(quantita) in href.
Should i use javascript to do this?Sorry for my english
Thanks



<input type=text id=qta_field value=${item.value}/><a href=updateItem?codice=${item.key.codice}&quantita=>update</a>


enter


More From » html

 Answers
8

The easiest way to do it with link and without any library:



<input type=text id=qta_field value=${item.value}/>
<a href='' onclick=this.href='updateItem?codice=${item.key.codice}&quantita='+document.getElementById('qta_field').value>update</a>

[#68695] Monday, November 24, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kamronr

Total Points: 749
Total Questions: 110
Total Answers: 122

Location: Dominica
Member since Sat, Nov 5, 2022
2 Years ago
;