CHAPTER 5

image

DOM Manipulation and Dynamic Content

Although HTML pages are static by nature, jQuery can be used to make them dynamic in many ways. Using jQuery you can not only change the content of Document Object Model (DOM) elements but also add, remove, or replace DOM elements on the fly. This makes your web page dynamic in terms of its content and DOM structure. Consider a situation in which you are fetching data residing in SQL Server using the Ajax technique and then want to display this data to the end user in a table. Because you don’t know how many rows will be returned by the server, you have to add rows and columns to the table dynamically. ...

Get Beginning jQuery 2 for ASP.NET Developers: Using jQuery 2 with ASP.NET Web Forms and ASP.NET MVC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.