在Wix中获取500个内部服务器错误

时间:2018-07-18 15:32:49

标签: jquery html wixcode

我可以在哪里在代码中发布要访问的网站?例如,当我提交Google时,我希望将其发送到该网站。

    <div>

  <H1><FONT="TIMES ROMAN" FONT-COLOR="BLUE" > SELECT An subject:</H1>

  <select id ="dropDownId"> <!-- give an id to select box-->

      <option value="">Select Option</option>
      <option value="Google">Google</option>
      <option value="Bing">Bing</option>
      <option value="Yahoo">Yahoo</option>

  </select>
  <br>
  <input class="SubmitButton" type="submit" name="SUBMITBUTTON"  value="Submit" style="font-size:20px; " />
</div>
<script src = "//code.jquery.com/jquery-3.0.0.min.js"></script> <!-- add jquery library-->
<script type = "text/javascript">
$('.SubmitButton').click(function(){ // on submit button click

    var urldata = $('#dropDownId :selected').val(); // get the selected  option value
    window.open("http://"+urldata+".html") // open a new window. here you need to change the url according to your wish.
});

0 个答案:

没有答案