PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat May 30, 2020 10:53 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Jan 29, 2010 6:20 am 
Offline
Forum Contributor

Joined: Wed Oct 29, 2008 2:59 pm
Posts: 413
Location: Albania


Top
 Profile  
 
PostPosted: Fri Jan 29, 2010 8:53 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
in jquery
$('div.class checkbox')


Top
 Profile  
 
PostPosted: Fri Jan 29, 2010 9:43 am 
Offline
Forum Contributor

Joined: Wed Oct 29, 2008 2:59 pm
Posts: 413
Location: Albania
How to josh? I don't understand.


Top
 Profile  
 
PostPosted: Fri Jan 29, 2010 10:18 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
First "include" jquery on your page with a <script> tag

http://code.jquery.com/jquery-1.4.1.js

The $ is just an alias to the jquery() function. You can see I just pass it the CSS selector names of the elements I want it to find. The great thing about jquery is the code is so damn simple, and automatically works in modern browsers.


Top
 Profile  
 
PostPosted: Fri Jan 29, 2010 10:59 am 
Offline
Forum Contributor

Joined: Wed Oct 29, 2008 2:59 pm
Posts: 413
Location: Albania


Top
 Profile  
 
PostPosted: Fri Jan 29, 2010 11:09 am 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6446
Location: 53.01N x 112.48W
I'm not sure getElementsByTagName() exists in all browsers.

_________________
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.


Top
 Profile  
 
PostPosted: Fri Jan 29, 2010 11:13 am 
Offline
Forum Contributor

Joined: Wed Oct 29, 2008 2:59 pm
Posts: 413
Location: Albania
I tried it in chrome, firefox and IE6, and it works


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group