Manipulate Questions With JQuery

=5 Point Choice=

Reset Widget - Mandatory
$('#answer SGQA N').removeAttr('checked'); // for N=1-5 OR

$('#questionN').find('input').removeAttr('checked'); // where N is the question #

Reset Widget - Optional
$('# SGQA NANS').attr('checked','checked');

Hide An Answer Choice
$('#answer SGQA N').parent.hide;  //since parent is the list item (li) entry

Null the Response
$('#java SGQA ').value='';

=List Dropdown=

Reset Widget
$('#answer SGQA ').find('option').first.attr('selected','selected');  // OR

$('#questionN').find('option').first.attr('selected','selected'); // where N is the question #

Hide An Answer Choice
? Is this possible?

Null the Response
$('#java SGQA ').value='';

=List Radio=

Reset Widget - Mandatory
$('#questionN').find('input').removeAttr('checked');  // where N is the question #

Reset Widget - Optional
$('#answer SGQA NANS').attr('checked','checked');

Hide an Answer Choice
$('#javatbd SGQA V').hide; // where V is the code value for the answer

Null the Response
$('#java SGQA ').value='';

=List with Comment=

Reset Widget - Mandatory
$('#questionN').find('input').removeAttr('checked');  // where N is the question #

$('#questionN').find('textarea').val('');  // blank the value of the comment

Reset Widget - Optional
$('#answer SGQA ').attr('checked','checked');

$('#questionN').find('textarea').val('');  // blank the value of the comment

Hide an Answer Choice
$('#answer SGQA N').parent.hide;  //since parent is the list item (li) entry

Null the Response
$('#java SGQA ').value='';

$('#answer SGQA comment').val(''); // blank hte value of the comment

=Array (Flexible Row)=

Reset Widget - Mandatory - All
$('#questionN').find('input').removeAttr('checked');  // where N is the question #

Reset Widget - Mandatory - One
$('#questionN').find('input [ id =answer SGQA SQ]').removeAttr('checked');  // where N is the question #

Reset Widget - Optional - All
$('#questionN').find('input [ id$=-]').attr('checked','checked');  // where N is the question #

Reset Widget - Optional - One
$('#answer SGQA SQ-').attr('checked','checked'); // where SQ is the subquestion code

Hide an Answer Choice (Column)
? Is this possible?

$('#questionN').find('td [ class=answer_cell_00N]').hide; // where N is the answer #. Note, this hides the check boxes but not the row header

Hide a Sub-Question (Row)
$('#questionN').find('tbody [ id$=SQ]').hide;  // where SQ is the SubQuestion code