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

Building a photo gallery using ImageMap control

Since photo galleries can be built using many different methods, let's make use of the ASP.NET ImageMap control in this recipe to build a gallery. The following table lists the summary of constructs used in this example:

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.

[attribute= "value"]

jQuery selector

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

click

jQuery event

This is fired when you click on an element. It corresponds to the JavaScript click event.

event.preventDefault()

jQuery method

This prevents ...

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