In this post, you will learn how to connect select box option with the anchor tag link.
Sometimes you want to change the select box value like an anchor tag with the refresh of page. Lets understand this with an example.
If you have select box in your html code like this:
Now, you want to refresh the page with the value selected from the select box. you can do the same thing with the anchor tag simply by giving the value to href attribute and it will refresh the page each time you click on anchor tag with the value associated with it.
You can do this thing to select box by using the following code: