Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Background Row Color change on Checkbox selection

726115Mar 28 2011 — edited Apr 20 2011
I 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
This post has been answered by Vee on Mar 28 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2011
Added on Mar 28 2011
4 comments
2,698 views