Web Development with jQuery®

(Elliott) #1

Setting, Retrieving, and Removing Attributes (^) ❘ 91
id='documentAttributeZeppoMarx'
value='Zeppo' />













The following style sheet is linked to the preceding document:
body {
font: 12px "Lucida Grande", Arial, sans-serif;
color: rgb(50, 50, 50);
margin: 0 ;
padding: 15px;
}
body#documentAttributes ul {
list-style: none;
margin: 0 ;
padding: 0 ;
}
body#documentAttributes ul li.disabled label {
opacity: 0.5;
}
And the following JavaScript is also linked to the preceding document:
$(document).ready(
function()
{
var getCheckbox = function()
{
var input = $('input[name="documentAttributeMarx"]:checked');
if (input && input.length)
{
return input;
}
[http://www.it-ebooks.info](http://www.it-ebooks.info)
Free download pdf