The following small series will provide you with a js form to submit and pass the parameter implementation method. I think this is quite good. Now I will share it with you and give you a reference. Let's take a look at the following small series to bring you a js form to submit and pass the parameter implementation method. I think this is quite good. Now I will share it with you and give you a reference. Let's take a look at it with xiaobian.
// Added beginfunction queryFun () {var type = $ ("# artType "). val (); var hasInputed = "1"; // indicates the information to be searched if ($ ("# query "). val () = "contestant name/number") {// indicates that no hasInputed = "0";} document is entered for search. getElementById ("queryForm "). action = ".. /news/starList. do? InputData = "+ hasInputed +" & artType = "+ type; document. getElementById (" queryForm "). submit () ;}// added function end
The above js submits the form and the implementation method of passing parameters is all the content that I have shared with you. I hope to give you a reference and support for PHP.
For more articles about submitting form forms in js and passing parameter implementation methods, refer to PHP!