Supervan Posted June 1, 2015 Share Posted June 1, 2015 hi The value of the input tag need to be added to a href tag. Is it possible to get the value of qty1 without using jquery or posting of a form. Need to create <a Href tag.. echo "<td> <input type=\"text\" name=\"qty1\" id=\"qty1\" autocomplete=\"off\"></td>" . "<td><a href=\"index123.php?qty1='+document.getElementById('qty1').value'&prodid=" . $product1->id . "\">add product</a>" Quote Link to comment https://forums.phpfreaks.com/topic/296590-input-tag-need-to-be-added-to-a-href-tag/ Share on other sites More sharing options...
Solution fastsol Posted June 1, 2015 Solution Share Posted June 1, 2015 If you are trying to manipulate the href AFTER the person types the value in the text field without submitting the form, then yes you would need javascript (e.g. jquery). Quote Link to comment https://forums.phpfreaks.com/topic/296590-input-tag-need-to-be-added-to-a-href-tag/#findComment-1513009 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.