How can you embed jquery variable inside a href
Hi,
Im trying to create a
href tag with the
prod-id and
qty that the user entered.
- $(document).ready(function ()
- {
- $('#qty1').blur(function()
- {
- var qqq = $('#qty1').val();
- });
- });
Input field
- <input type="text" name="qty1" id="qty1" autocomplete="off">
Id is part of a class... and contains the product code
- $product1->id
The a href thats not working.. it must contain the Id and qty
- <a href=\"index123.php?qty1=" . javascript:(function(){$('#qty1').val();}."&prodid=" . $product1->id . "\">add me</a>