< Ul Class = "Ul_inline" >
< Li > < Input Type = "Checkbox" Name = "Checkbox_color" Value = "White" /> White </ Li >
< Li > < Input Type = "Checkbox" Name = "Checkbox_color" Value = "Red" /> Red </ Li >
< Li > < Input Type = "Checkbox" Name = "Checkbox_color" Value = "Yellow" /> Yellow </ Li >
< Li > < Input Type = "Checkbox" Name = "Checkbox_color" Value = "Blue" /> Blue </ Li >
</ Ul >
$ ("[Name = 'checkbox _ color']: checked"). Each (Function(){//: Checked Only select the selected each loop
$ (This). Val (); // obtain the selected value = "white"
$ (This). Text (); // obtain the selected text> White </LI>
}) // Retrieve all selected data
// Select checkbox
$ ("# Tshirt_tshirtm>. ul_inline> LI> input [value = 'xl '] "). ATTR ("checked", "checked ");//. ATTR ("checked", "checked ")
Checked = true under jquery 1.4.2; not available for specific reasons;