Skip to Main Content
PhoneGap Build
book

PhoneGap Build

by Bintu Harwani
November 2013
Intermediate to advanced content levelIntermediate to advanced
303 pages
8h 45m
English
Auerbach Publications
Content preview from PhoneGap Build
22 ◾  PhoneGap Build
<input type = "button" id = "sendButton" value = "Send">
<div id = info></div>
</form>
</body>
</html>
We can see that the getElementsByTagName() method is used to access all the HTML
elements with the input tag name. e method returns an HTMLCollection object that is
assigned to the ElementsArray. It means that the ElementsArray contains all the HTML
elements of the index.html file. Two strings, selectedContact and selectedTemplate,
are defined to store the selected template and the contact names, respectively. Using a for loop, each
HTML element in the ElementsArray is accessed and tested. If the HTML element is a check
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning App Development with Parse and Phonegap

Beginning App Development with Parse and Phonegap

Wilkins Fernandez, Stephan Alber
Ajax For Dummies®

Ajax For Dummies®

PhD Steve Holzner

Publisher Resources

ISBN: 9781466589742