In the previous article, the previous article implemented the UIWebView loading of HTML files and the response to the JS event, but the values entered on the HTML page were not obtained.Let's talk about this today. First Use the tool class
JavaScript BasicsJavaScript is a scripting language that belongs to the web!JavaScript is used by millions of of pages to improve design, verify forms, detect browsers, create cookies, and more.JavaScript is the most popular scripting language on
Gets the selected valueGets the value of a set of radio selected itemsvar item = $ (' input[@name =items][@checked] '). Val ();Gets the text of the Select selected itemvar item = $ ("select[@name =items] option[@selected]"). Text ();The second
Script Language
=
"
Javascript
"
>
Function
Chk ()
{ VaR OBJ = Document. getelementsbyname ( ' Imgposition ' ); For (I = 0 ; I OBJ. length; I ++ ) {If(OBJ [I]. Checked){Alert (OBJ [I]. value );Return;}}
Author: excelence Paste Finishing Date: June 15, 2004
This article is not just about JavaScript, it's about JavaScript in Notes/domino!
Although it is said, it is worth a look!
Hope you get something!
Intimate contact with radio buttons, check
Let the user click OK to cancel. Let the user enter a value. Opens the specified windowAlert ("Message") Confirm (' message ') prompt ("message") Open ("url")http://www.maobuy.cnFirst of all, I would like to say a few words about JavaScript, I hope
This article mainly introduces how to implement the input password input box based on JS Code to change the input password to black-dot ciphertext, and how JS can obtain the values of multiple input boxes with the same name. The code is easy to
For example, to create a most common input initial value, I used to write it in the input value. I want to write the initial value separately, so I am dumb and use & lt; span & gt; tag write, located on the input, so that the click and input get
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.