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>" 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...
fastsol Posted June 1, 2015 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). 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
Archived
This topic is now archived and is closed to further replies.