Solved

jQuery checkbox and uniform plugin syntax

Posted on 2012-12-22
4
1,160 Views
Last Modified: 2012-12-22
This should be a simple question for someone.  Could somebody please explain the meaning of the following two lines of code:
$("select, input[type=file]").not('select[multiple]').uniform();		
$('input:checkbox, input:radio').checkbox();

Open in new window

I seem to have a problem related to these lines of code, but I thought I should first understand what they are doing before I start debugging anything.

Thank you.
0
Comment
Question by:DanielAttard
  • 2
  • 2
4 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38715892
http://uniformjs.com/#docs
http://code.google.com/p/jquery-checkbox/

$('input:checkbox, input:radio') select all checkbox and radio button of the document
$("select, input[type=file]") select all dropdown boxes and file input of the document
0
 

Author Comment

by:DanielAttard
ID: 38715935
Thanks for the post.  What about the reference to 'not' in the following:

$("select, input[type=file]").not('select[multiple]').uniform();

Open in new window

0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 500 total points
ID: 38716032
$("select, input[type=file]").not('select[multiple]')

$("select, input[type=file]") select all dropdown boxes and file input of the document but NOT listbox (dropdown with a << multiple >> attribute)

<select multiple="multiple"
<select multiple=""
<select multiple="blabla"
0
 

Author Closing Comment

by:DanielAttard
ID: 38716107
Thanks for the help.  Much appreciated.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now