Solved

jQuery checkbox and uniform plugin syntax

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

828 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