Sunday, 15 April 2012

javascript - Place the value of the input text field in the href attribute -


I have to keep the value of the text field inside the anchor tag href attribute, there are several rows in the loop

  & lt; Input type = "text" placeholder = "volume" name = "volume" id = 'quantity' value = " 

  $ ('A'). Attr ('href', $ ('#quantity') val ()).  

I recommend adding a id or class attribute to your a element so that one

UPDATE

Quantity parameter to show JSfiddle JS Need to specify element for input value:


No comments:

Post a Comment