Murach's JavaScript and DOM Scripting
How to script tables and forms

This chapter starts off by showing you how to use DOM scripting to add and remove rows and cells in a table and how to sort a table by any of its columns. Then, you'll learn some advanced skills for scripting forms that build on the skills that you learned in chapter 6.

Chapter 17 How to script tables and forms
How to script tables 592
How to add rows and cells 592
How to remove rows and cells 594
How to reorder rows 596
The Table Sort application 598
The XHTML file 598
The tablesort_library.js file 600
The product_list.js file 606
How to script forms 608
How to handle form events 608
How to script radio buttons 610
How to script select lists 612
A JavaScript library for working with text selections 614
How to use the JavaScript library to work with text selections 616
The Product Configuration application 618
The XHTML file 618
The config_library.js file 622
The config.js file 628




Murach's JavaScript and DOM Scripting

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.