Table of Contents [Hide/Show]
Online Repositories jQuery jQuery UI Field Values Text, Hidden, and Password Fields DropDownList CheckBox Radio Button Page Element Properties Enable/Disable Visiblility Selectors General Children Attributes Form Selectors Special Selectors Common Functions
$(selector).val()
$(selector).val('newValue')
$('select#id option:selected').val()
$('select#id option:selected').html()
$(selector).is(':checked')
$(selector).attr('checked', 'checked')
$(selector).removeAttr('checked')
$('input:checked[name=MyName]).val()
$('input[name=MyName]').filter('[value=MyValue]').attr('checked', 'checked');
$('input[name=MyName]').removeAttr('checked');
var enabled = !$(selector).attr('disabled');
$(selector).removeAttr('disabled')
$(selector).attr('disabled','disabled')
$(selector).is(":visible")
$(selector).show()
$(selector).hide()
$('div')
div
$('#myId')
id='myId'
$('.MyClass')
MyClass
$('selectorE + selectorF')
selectorF
selectorE
$(selectorE).next('selectorF')
$('selectorE ~ selectorF')
$('selectorE, selectorF')
$(':not(selectorE)')
$(':empty')
$('selectorE selectorF')
$('selectorE > selectorF')
$('li:nth-child(2)')
li
$('tr:nth-child(odd)')
tr
$('.myclass:nth-child(3n+2)')
myclass
$('li:first-child')
$('li:nth-child(1)')
$('li:last-child')
$('li:only-child')
$('[rel]')
rel
$('[rel=value]')
value
$('[rel!=value]')
$('[rel^=value]')
$('[rel$=value]')
$('[rel*=value]')
$('[rel~=value]')
$('[rel|=value]')
$(':input')
input
select
textarea
button
$(':text')
<input type='text'/>
$(':password')
<input type='password'/>
$(':radio')
<input type='radio'/>
$(':checkbox')
<input type='checkbox'/>
$(':submit')
<input type='submit'/>
$(':image')
<input type='image'/>
$(':reset')
<input type='reset'/>
$(':button')
<input type='button'/>
$(':file')
<input type='file'/>
$(':enabled')
disabled
$(':disabled')
$(':checked')
$(':selected')
option
$(':eq(N)')
$(':gt(N)')
$(':lt(N)')
$(':first')
$(':last')
$(':even')
$(':odd')
$(':parent')
$(':contains(value)')
$(':has(selectorE)')
$(':visible')
$(':hidden')
$(':header')
<h1>
<h2>
$(':animated')
$(selector).append(content)
.append(content)
.children(selector)
.closest(selector)
'form'
.each(function(index, item) { . . . } )
$.each(collection, function(index, item){ . . . })
.eq(index)
.filter(selector)
.find(selector)
.first()
.hasClass(class)
.html()
.last()
.next(selector)
.parent(selector)
.prepend(content)
.prev(selector)
.replaceWith(content)
.toggle()
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.