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!

Find which tab is clicked in jQuery using Apex - Conditional Item Display

699403Apr 1 2010 — edited Apr 1 2010
Hi,

I am using jQuery tabs in my apex page see code below:
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css" type="text/css" />
 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
 
 
<script type="text/javascript">
$(function() {
   $("#tabs").tabs();
   $x("tabs").appendChild( $x("tabs-1"));
   $x("tabs").appendChild( $x("tabs-2"));
});
</script
<div id="tabs">
<ul>
<li><a href="#tabs-1">Sample Tab1</a></li>
<li><a href="#tabs-2">Sample Tab2</a></li> 
</ul>
</div>
I would like to display a button (example a button called sample2) at the bottom of a tabbed region Sample Tab2 based on a condition i.e. only if Sample Tab2 is clicked or in focus. Could someone please guide me on how i could implement this using a condition on the actual button "sample2"?

Thanks and appreciate any kind of help!

Cheers.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2010
Added on Apr 1 2010
2 comments
1,677 views