- Helps to change the CSS even after the page has been rendered.
- Easily alter the page content with minimal code.
- Efficient event handling.
- Animations to the page.
- Integrated with AJAX.
- Multiple actions in one line of code.
- Library file size is minimal.
Let’s create our first jQuery website. For this follow the steps outlined below.
- Open Visual Studio and add a new website, name is Part1
- Now we will add the jQuery js file we have downloaded. Right click the solution, Add Existing Item, open the folder where the file was downloaded. And click Ok.
- Now our solution will have the following structure.
- Open default.aspx and paste the following code
- Right click the default.aspx file and View in browser.
Hope all of you have read and had a good starting experience with jQuery. In Part 2 of this series i will cover in depth of how to select elements. jQuery supports XPath as well has jQuery’s own custom selector for traversing DOM. See you in Part 2.