ASP.NET jQuery Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Chapter 2. Using jQuery Selectors with ASP.NET Controls

This chapter will introduce you to the various types of selectors that can be used to work with ASP.NET controls. We will cover the following recipes in this chapter:

  • Selecting a control using an ID and displaying its value
  • Selecting a control using the CSS class
  • Selecting a control using HTML tag
  • Selecting a control by its attribute
  • Selecting an element by its position in the DOM
  • Enabling/disabling controls on a web form
  • Using selectors in MVC applications
Note

The source code provided with the book has each recipe written as an independent project and named as Recipe1, Recipe2, Recipe3, and so on.