• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using Tables

As you can see in Tables 14.7 to 14.19, there’s a lot of JavaScript support for working with tables. Let’s take a look at some examples showing what JavaScript is good for here.

Here’s an example where the user is buying an item and can specify the number of the item she wants to buy using a <SELECT> control in a table cell, and the code in the page will automatically update the total price in another table cell. You can see this code at work in Figure 14.7. When you select a number in the <SELECT> control control>, the code multiplies that number by the price per item and displays the result in the table cell on the right.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint