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: 5 stars5 stars5 stars5 stars5 stars / 7
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

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

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




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