Background Row Color change on Checkbox selection
726115Mar 28 2011 — edited Apr 20 2011I am using APEX 3.2 and have incorporated JSQuery library. I have a report region of SQL Query Type. The first column of a report is apex_item.checkbox. Based on the selection, I need to highlight the row that will be selected using checkbox.
I have following query in my HTML Header page.
<script language="JavaScript" type="text/javascript">
$(document).ready( function(){
$('input[name=f01]').change( function(){
if ( $(this).is(':checked') ){
$(this).parents('tr:first').css('background-color','#FFFFFF');
alert('changed');
}
else{
$(this).parents('tr:first').css('background-color','#CCCCCC');
alert('not changed');
}
});
});
</script>
It gives me the alert whenever the checbox is selected but the background color of the row doesn't get changed.
Any assistance?
Syed
Edited by: rizvi on Mar 28, 2011 2:28 AM