Select Option Redirect URL On Submit Using Javascript



Hello Dev,

In the present day, i we’ll present you choose choice redirect url on submit instance. This text will provide you with easy instance of choose choice redirect url on submit instance. you’ll choose choice redirect url on submit instance. On this article, we’ll implement a choose choice redirect url on submit instance.

So let’s comply with few step to create instance of choose choice redirect url on submit instance.

Instance


<html>
   <head>
      <title>Choose Choice Redirect URL On Submit Instance</title>
      <model>
         enter, choose
         {
         width: 280px;
         margin: 19px;
         top: 45 px;
         padding: 10px;
         }
      </model>
   </head>
   <physique>
      <type  id="comment-form1" identify="contact-form1"  onsubmit="return mysubmit();">
         <choose  id="choice" class="chosen" >
            <choice chosen disabled>Choose Financial institution</choice>
            <choice worth="https://codeplaners.com/">Sanwebcorner Demo</choice>
            <choice worth="https://mbrwebsolution.com/" >Sanwebcorner Major Web page</choice>
            <choice worth="https://mbrwebsolution.com/contact-us" >Single web page</choice>
         </choose>
         <br/>
         <enter identify="submit" kind="submit" worth="Submit" /><br>
      </type>
      <script>
         doc.getElementById('comment-form1').addEventListener('submit',(e)=>{
          e.preventDefault();
          window.location = (doc.getElementById('choice').worth);
         })
      </script>
      </div>
      </div>
      </part>
   </physique>
</html>

I hope it is going to help you…



Komentar

Postingan populer dari blog ini

PHP 8 Multiple Select Dropdown Example

Laravel 8 Get HTTP Hostname

JQuery Drag And Drop Menu Example