ASP.NET AJAX 1.0 Beta 2: Basic DOM
Posted by: AspNetResources.com articles, news and updates,
on 16 Nov 2006 |
View original | Bookmarked: 0 time(s)
Compared to some other JavaScript libraries, such as Prototype and its derivatives, the Microsoft AJAX Library doesn’t offer a whole lot of DOM manipulation. Still, it’s beta than nothing.
$get()
The dollar function $() was dumped in favor of $get() which is an alias for document.getElementById(). It takes two parameters: the id of an element to locate, and an element to traverse for a match. If the second parameter is omitted, the entire document is searched. The following sample searches...