Solved

jQuery checkbox and uniform plugin syntax

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Radio button Onclick submit form with validation 5 27
Different Delete Messages 7 23
Birthdays 3 21
Asp.net mvc foreach 3 12
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

747 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

8 Experts available now in Live!

Get 1:1 Help Now