Friday 20 October 2017

Redirect to new page from dropdown selected value

If you would like to open your select option tags values links in new tab, you can use the below mentioned code using jQuery.



  ;(function($){
    $('select').change(function(){
    var getValue = $(this).val();
    window.open(getValue, '_blank');
    })
  }(jQuery));


Below is the demonstration of above mentioned code on CodePen.




Load disqus comments

0 comments