Depending on the selected button, switch to different JS pages



  • как это выглядит

    Interested how to implement. When pressed on the button, Continue has to move (in a new deposit) on different pages: If the user selected the 1st option (1 month), the transition should be on page https://q=10 if the 2nd is https://q=20, etc.



  • window.open("your url" + "/q=" + document.querySelector('.contract.selected').dataset.qvalue);
    


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2