Home  >  Article  >  Backend Development  >  请问一个关于javacript的有关问题

请问一个关于javacript的有关问题

WBOY
WBOYOriginal
2016-06-13 12:01:06873browse

请教一个关于javacript的问题
下面的代码要求是在本页面传递值,点击123则form中获取123值,点击456则form中获取456值,目前该值不能获取,不知错在哪里,请高手帮助解决。

123
 456

 


 ">
 



 <script><br /> function site_submit(sitestr){<br /> document.getElementsByName("site")[0] = sitestr;<br /> document.getElementById("change_page").submit();<br /> }<br /> </script> 
------解决方案--------------------
本帖最后由 xuzuning 于 2014-06-29 21:58:39 编辑  123
 456

 

 ">
 



  

粗心大意害死人!!!
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn