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

Creating a 5 star rating control

A 5 star rating control is a useful feature when you need to review an item, such as a book, movie, product, and so on. In this example, let's use jQuery to create this application as an ASP.NET User Control. The constructs used in this example are as follows:

Construct

Type

Description

$("#identifier")

jQuery selector

This selects an element based on its ID.

$("html_tag")

jQuery selector

This selects all elements with the specified HTML tag.

$(this)

jQuery object

This refers to the current jQuery object.

[attribute$= "value"]

jQuery selector

This selects an element with the specified attribute ending with the "value" string.

click

jQuery event

This is fired when you click on an element. ...

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