O'Reilly logo

ASP.NET jQuery Cookbook - Second Edition by Sonal Aneel Allana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Introduction

A web page is composed of a variety of HTML elements, such as form, div, span, paragraph, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required