Is there any tag <a> in html that can pass a value to other html page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is there any tag <a> in html that can pass a value to other html page?

I want to pass a value from dropdown list without submitting to an other html page...

29th Aug 2018, 7:15 AM
Kimiya Nayyeri
Kimiya Nayyeri - avatar
6 Answers
+ 6
It’s usually done with PHP sessions. Or you can pass it into your url index.html?size=30 If you don’t use PHP the best solution would be local storage.
29th Aug 2018, 1:36 PM
Toni Isotalo
Toni Isotalo - avatar
+ 1
Can you clarify with an example? I don't understand the whole passing-a-value-without-submitting goal. What's wrong with submitting?
29th Aug 2018, 8:12 AM
Janning⭐
Janning⭐ - avatar
+ 1
see I am coding to make a shopping site ...In this site I set a dropdown list that the user should select the size ...that form (dropdown list) doesn't have any submit button.the size which is selected by the user must pass to another html page and shown to the user.
29th Aug 2018, 8:18 AM
Kimiya Nayyeri
Kimiya Nayyeri - avatar
+ 1
yes there is a button that is added to cart.that when you click on the button a modal is shown ...and also in that modal there is another button which links you to another page that the size is shown there.
29th Aug 2018, 9:03 AM
Kimiya Nayyeri
Kimiya Nayyeri - avatar
+ 1
use ajax
29th Aug 2018, 2:44 PM
Pavan Chowdary Goli
Pavan Chowdary Goli - avatar
0
how? can you refer me to an example?
29th Aug 2018, 1:38 PM
Kimiya Nayyeri
Kimiya Nayyeri - avatar