Home arrow JavaScript arrow Working with IDs and Classes with the Behaviour JavaScript Library
JAVASCRIPT

Working with IDs and Classes with the Behaviour JavaScript Library


Do you want to learn how to quickly build web sites that separate visual presentation and structural markup from JavaScript code? Then you should try the powerful Behaviour package! Welcome to the second article of the series that began with "Introducing the Behaviour JavaScript Library." In a step-by-step format, this series shows you how to use the capacity offered by this software to get rid of those ugly, old-fashioned inline JavaScript routines.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 2
March 26, 2007
TABLE OF CONTENTS:
  1. · Working with IDs and Classes with the Behaviour JavaScript Library
  2. · Extending the use of CSS selectors with the Behaviour library
  3. · Assigning JavaScript functions by using CSS classes
  4. · Using IDs and classes together

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Working with IDs and Classes with the Behaviour JavaScript Library
(Page 1 of 4 )

Introduction

Stepping back for a moment to the topics that I covered in the preceding article, certainly you'll recall that in that tutorial I showed you how to utilize the neat features incorporated in the Behaviour library. They came in handy for assigning diverse functions to specific CSS selectors, without the need to deal with embedded JavaScript code.

In consonance with this concept, I provided you with a decent set of hands-on examples, which demonstrated how to assign basic JavaScript functions to simple web page elements, such as paragraphs and links.

However, beyond the educational sense that I originally planned to give to the referenced examples, the objective of this series is to explore the wide range of possibilities that this excellent software package can offer to many web developers. As we examine these possibilities, we'll keep in mind that the trend to write independent behavior layers has grown in popularity in the last few months.

Therefore, since I assume that you're interested in learning more about the capacities that come bundled with Behaviour, in this second part of the series I'm going to show you how to use it to work with more complex CSS selectors, this time including IDs and classes.

Having established the goal of this tutorial, let's continue exploring the numerous capacities of this JavaScript library. Let's get started!


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 1 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials