Solved

jQuery checkbox and uniform plugin syntax

Posted on 2012-12-22
4
1,171 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

786 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