473,386 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Showing div tags using jQuery

Hi,

I am using VS.Net 2008. I have created a Ajax web application in C#. In the webform1 i have 6 div tags. In each of the div tags i am showing a .acsx file. Here i am able to move betwwen each of the tabs created using DIV and Jquery. Now when i am in UserControl1.acsx and click a button control in the webform1, I have to go to the last DIV tab. i.e UserControl6.acsx should come to front.

Please any help me. It's very urgent.

Thanks
Manoj
Mar 23 '10 #1
7 2332
CroCrew
564 Expert 512MB
Please post the code you have so far so that we can get a better idea of what we have to work with.

Happy Coding,
CroCrew~
Mar 24 '10 #2
Hi,

Here is code which i have developed.
Expand|Select|Wrap|Line Numbers
  1. <%@ Page Title="" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true" EnableEventValidation="false" 
  2.     CodeBehind="MyAccount.aspx.cs" Inherits="CustomerPortal.MainPages.MyAccount.MyAccount" %>
  3.  
  4. <%@ Register Src="~/UserControls/PersonalInfoUc.ascx" TagName="PersonalInfoUc" TagPrefix="Uc1" %>
  5. <%@ Register Src="~/UserControls/RelatedLinksUc.ascx" TagName="RelatedLinksUc" TagPrefix="Uc2" %>
  6. <%@ Register Src="~/UserControls/LoginUc.ascx" TagName="LoginBoxUc" TagPrefix="Uc3" %>
  7. <%@ Register Src="~/UserControls/NewsLetterUc.ascx" TagName="NewsLetterUc" TagPrefix="Uc4" %>
  8. <%@ Register Src="~/UserControls/ProductCatalogueUc.ascx" TagName="ProductCatalogueUc"
  9.     TagPrefix="Uc5" %>
  10. <%@ Register Src="~/UserControls/NavigationUc.ascx" TagName="NavigationUc" TagPrefix="Uc6" %>
  11. <%@ Register Src="~/UserControls/SideBannerUc.ascx" TagName="SideBannerUc" TagPrefix="Uc7" %>
  12. <%@ Register Src="~/UserControls/MainBannerUc.ascx" TagName="MainBannerUc" TagPrefix="Uc8" %>
  13. <%@ Register Src="~/UserControls/LatestNewsUc.ascx" TagName="LatestNewsUc" TagPrefix="Uc9" %>
  14. <%@ Register Src="~/UserControls/MyPreferencesUc.ascx" TagName="MyPreferencesUc"
  15.     TagPrefix="Uc10" %>
  16. <%@ Register Src="~/UserControls/OTPUc.ascx" TagName="OTPUc" TagPrefix="Uc11" %>
  17. <%@ Register Src="~/UserControls/PaymentInfoUc.ascx" TagName="PaymentInfoUc" TagPrefix="Uc12" %>
  18. <%@ Register Src="../../UserControls/TellAFriendUc.ascx" TagName="TellAFriendUc"
  19.     TagPrefix="Uc13" %>
  20. <%@ Register Src="~/UserControls/VehicleSearchUc.ascx" TagName="VehicleSearchUc"
  21.     TagPrefix="Uc15" %>
  22.     <%@ Register Src="~/UtilityControls/ProgressIndicatorUc.ascx" TagName="ProgressIndicatorUc" TagPrefix="Uc16" %>
  23. <asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
  24.     <link rel="stylesheet" href="../../css/ui.tabs.css" type="text/css" media="print, projection, screen" />
  25.  
  26.     <script src="../../js/jquery-1.2.4b.js" type="text/javascript"></script>
  27.  
  28.     <script src="../../js/ui.core.js" type="text/javascript"></script>
  29.  
  30.     <script src="../../js/ui.tabs.js" type="text/javascript"></script>
  31.  
  32.     <link rel="stylesheet" href="../../css/ui.tabs.css" type="text/css" media="print, projection, screen">
  33.  
  34.     <script src="../../js/openclose.js" type="text/javascript"></script>
  35.  
  36.     <script type="text/javascript">
  37.  
  38.     function PersonalInfo_SaveClick() {
  39.         __doPostBack('<%= MyInfoPnl.ClientID %>', 'Action=PersonalInfoSaveClick');
  40.     }
  41.     function MyPref_SaveClick() {
  42.         __doPostBack('<%= MyInfoPnl.ClientID %>', 'Action=MyPrefSaveClick');
  43.     }
  44.     function personalInfoConfirmPopup_OnOkScript() {
  45.         __doPostBack('<%= MyInfoPnl.ClientID %>', 'Action=PersonalInfoFurtherChanges');
  46.     }
  47.     function myPrefConfirmPopup_OnOkScript() {
  48.         __doPostBack('<%= MyInfoPnl.ClientID %>', 'Action=MyPrefFurtherChanges');
  49.     }
  50.  
  51.     function Popup_OnOkScript() {
  52.         __doPostBack('<%= MyInfoPnl.ClientID %>', 'Action=MoveTOOTP');
  53.         //MoveToOTP
  54.     }
  55.     function personalInfoConfirmPopup_OnCancelScript() {
  56.         __doPostBack('<%= MyInfoPnl.ClientID %>', 'Action=SaveChanges');
  57.     }
  58.     </script>
  59.  
  60. </asp:Content>
  61. <asp:Content ID="Content2" ContentPlaceHolderID="BreadCrumb" runat="server">
  62.     <span class="orangetext"><a href="http://bytes.com/topic/Welcome.aspx" class="breadcrumbs">Home</a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<strong>My
  63.         Account</strong></span>
  64. </asp:Content>
  65. <asp:Content ID="LeftNav" ContentPlaceHolderID="LeftNav" runat="server">
  66.     <Uc6:NavigationUc ID="NavigationUc1" runat="server" />
  67.     <Uc7:SideBannerUc ID="SideBannerUc1" runat="server" />
  68. </asp:Content>
  69. <asp:Content ID="TopBanner" ContentPlaceHolderID="TopBanner" runat="server">
  70.     <Uc8:MainBannerUc ID="MainBannerUc1" runat="server" />
  71. </asp:Content>
  72. <asp:Content ID="RightNav" ContentPlaceHolderID="RightNav" runat="server">
  73.     <asp:UpdatePanel ID="RightNavPnl" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="False">
  74.         <ContentTemplate>
  75.             <Uc3:LoginBoxUc ID="LoginBoxUc1" runat="server" />
  76.             <Uc5:ProductCatalogueUc ID="ProductCatalogueUc1" runat="server" />
  77.             <!--#include file="../../Contents/zinc_NOA_Related_Accounts.html" -->
  78.             <Uc4:NewsLetterUc ID="NewsLetterUc1" runat="server" />
  79.             <Uc13:TellAFriendUc ID="TellAFriendUc1" runat="server" />
  80.             <Uc15:VehicleSearchUc ID="VehicleSrchUc" runat="server" />
  81.         </ContentTemplate>
  82.     </asp:UpdatePanel>
  83. </asp:Content>
  84. <asp:Content ID="Body" ContentPlaceHolderID="MainContent" runat="server">
  85.     <div>
  86.         <b class="greenbox"><b class="greenbox1"><b></b></b><b class="greenbox2"><b></b></b>
  87.             <b class="greenbox3"></b><b class="greenbox4"></b><b class="greenbox5"></b></b>
  88.         <div class="greenboxfg">
  89.             <span class="whiteheader">Welcome</span></div>
  90.         <b class="greenbox"><b class="greenbox5"></b><b class="greenbox4"></b><b class="greenbox3">
  91.         </b><b class="greenbox2"><b></b></b><b class="greenbox1"><b></b></b></b>
  92.     </div>
  93.     <br />
  94.     <asp:UpdateProgress AssociatedUpdatePanelID="MyInfoPnl" ID="RegistrationPrg"
  95.     runat="server" DisplayAfter="0">
  96.     <ProgressTemplate>
  97.         <Uc16:ProgressIndicatorUc id="MyInfoPrgInd" runat="server" ProgressText="Please wait..."/>
  98.     </ProgressTemplate>
  99. </asp:UpdateProgress>
  100.     <asp:UpdatePanel ID="MyInfoPnl" UpdateMode="Conditional" ChildrenAsTriggers="false"
  101.         runat="server" OnLoad="MyInfoPnl_Load">
  102.         <ContentTemplate>
  103.             <div id="TabsContainer">
  104.                 <ul id="tabs" runat="server">
  105.                     <li class="tabs-nav li"><a href="#tab1"><span>My Info</span></a></li>
  106.                     <li class="tabs-nav li"><a href="#tab2"><span>My Pref</span></a></li>
  107.                     <li class="tabs-nav li"><a href="#tab3"><span>Debit Order</span></a></li>
  108.                     <li class="tabs-nav li"><a href="#tab4"><span>Order History</span></a></li>
  109.                     <li class="tabs-nav li"><a href="#tab5"><span>Invoice History</span></a></li>
  110.                     <li class="tabs-nav li" id="tab66" runat="server"><a href="#tab6"><span>OTP</span></a></li>
  111.                 </ul>
  112.                 <div id="tab1">
  113.                     <Uc1:PersonalInfoUc ID="PersonalInfoUc1" runat="server" />
  114.                     <br />
  115.                     <div class="btngreen">
  116.                         <div>
  117.                             <asp:Button ID="PersonalInfoSaveChangesBtn" runat="server" CssClass="button" OnClientClick="PersonalInfo_SaveClick(); return false;">
  118.                             </asp:Button>
  119.                         </div>
  120.                     </div>
  121.                     <br />
  122.                 </div>
  123.                 <div id="tab2">                    
  124.                     <Uc10:MyPreferencesUc ID="MyPreferencesUc1" runat="server"  EnableMode="false"/>
  125.                     <br />
  126.                     <div class="btngreen">
  127.                         <div>
  128.                             <asp:Button ID="MyPrefSaveChangesBtn" runat="server" CssClass="button" OnClientClick="MyPref_SaveClick(); return false;">
  129.                             </asp:Button>
  130.                         </div>
  131.                     </div>
  132.                     <br />
  133.                 </div>
  134.                 <div id="tab3">
  135.                     <div align="left" class="orangetext" style="padding: 15px;">
  136.                         <asp:Label ID="personalInfoTopLbl" runat="server"></asp:Label>
  137.                     </div>
  138.                     <div align="left" class="bodytext" style="padding: 0 15px 10px;">
  139.                         <asp:Label ID="FieldLbl" runat="server"></asp:Label>
  140.                     </div>
  141.                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  142.                         <tr>
  143.                             <td bgcolor="#a8c399" height="30">
  144.                                 <div align="left" class="whitetext" style="padding-left: 15px; padding-right: 15px;">
  145.                                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  146.                                         <tr>
  147.                                             <td>
  148.                                                 <strong>Debit Order Information </strong>
  149.                                             </td>
  150.                                             <td align="right" class="whitetext11">
  151.                                                 &nbsp;
  152.                                             </td>
  153.                                         </tr>
  154.                                     </table>
  155.                                 </div>
  156.                             </td>
  157.                         </tr>
  158.                         <tr>
  159.                             <td>
  160.                                 &nbsp;
  161.                             </td>
  162.                         </tr>
  163.                         <tr>
  164.                             <td>
  165.                                 <div>
  166.                                     <asp:UpdatePanel runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"
  167.                                         ID="DebitOrderUpdatePnl">
  168.                                         <ContentTemplate>
  169.                                             <label runat="server" id="NoDataFound" class="blacktext">
  170.                                                 No Data Found</label>
  171.                                             <asp:GridView ID="DebitOrderGrid" runat="server" CssClass="cart" orderStyle="None"
  172.                                                 CellPadding="0" GridLines="None" Width="100%" AutoGenerateColumns="False" EmptyDataText="No Data Found"
  173.                                                 OnRowDeleting="DebitOrderGridDeleting" Visible="false" >
  174.                                                 <Columns>
  175.                                                     <asp:BoundField DataField="Holder_Name" HeaderText="Holder Name" />
  176.                                                     <asp:BoundField DataField="Account_NO" HeaderText="Account No" />                                                    
  177.                                                     <asp:TemplateField HeaderText="Branch Code">
  178.                                                         <ItemTemplate>
  179.                                                             <asp:Label ID="Branch_Code" runat="server" Text='<%# Eval("Branch_Code")%>' />
  180.                                                             <asp:HiddenField ID="Account_Type" runat="server" Value='<%# Eval("Account_Type")%>' />
  181.                                                             <asp:HiddenField ID="Debit_Order_ID" runat="server" Value='<%# Eval("Debit_Order_ID")%>' />
  182.                                                             <asp:HiddenField ID="Next_Due_Date" runat="server" Value='<%# Eval("Next_Due_Date")%>' />
  183.                                                         </ItemTemplate>
  184.                                                     </asp:TemplateField>
  185.                                                     <asp:CommandField DeleteText="Modify" ShowDeleteButton="True" />
  186.                                                 </Columns>
  187.                                             </asp:GridView>
  188.                                             <asp:HiddenField ID="DebitOrderIDHdn" runat="server" />
  189.                                             <asp:HiddenField ID="NextDueDateHdn" runat="server" />
  190.                                             <br />
  191.                                             <asp:Panel ID="DebitOrdersPnl" runat="server">
  192.                                                 <Uc12:PaymentInfoUc ID="PaymentInfoUc1" runat="server" />
  193.                                             </asp:Panel>
  194.                                         </ContentTemplate>
  195.                                     </asp:UpdatePanel>
  196.                                 </div>
  197.                                 <div id="debitOrderSave" runat="server" class="btngreen">
  198.                                     <div>
  199.                                         <asp:Button ID="DebitOrderSaveChangesBtn" runat="server" CssClass="button" OnClientClick="return false;"></asp:Button>
  200.                                     </div>
  201.                                 </div>
  202.                             </td>
  203.                         </tr>
  204.                     </table>
  205.                     <br />
  206.                 </div>
  207.                 <div id="tab4">
  208.                     <asp:UpdatePanel runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"
  209.                         ID="OrderHistoryPnl">
  210.                         <ContentTemplate>
  211.                             <asp:GridView ID="OrderHistoryGrid" runat="server" AllowPaging="True" CellPadding="1"
  212.                                 CellSpacing="1" OnPageIndexChanging="OrderHistoryGrid_PageIndexChanging" CssClass="receiptcart" GridLines="None" AutoGenerateColumns="False" 
  213.                                 Width="100%">
  214.                                 <EmptyDataTemplate>
  215.                                     No Record Found
  216.                                 </EmptyDataTemplate>
  217.                                 <Columns>
  218.                                     <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="235px" DataField="Product_Name" HeaderText="Product Name" />
  219.                                     <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="100px" DataField="Purchase_Date" HeaderText="Date Purchased" DataFormatString="{0:dd-MM-yyyy}" />
  220.                                     <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="85px" DataField="Price" HeaderText="Price" DataFormatString="R {0:N2}" />
  221.                                     <asp:TemplateField HeaderText="Invoice Number">                                        
  222.                                         <ItemTemplate>                                            
  223.                                             <a onclick="window.open('MyInvoice.aspx?InvoiceNo=<%# Eval("Invoice_No") %>', 'MyInvoice', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=800, height=400,top=100,left=100;');return false;"
  224.                                                 href="MyInvoice.aspx?InvoiceNo=<%# Eval("Invoice_No") %>" target="_blank" class="blacklink_sml">
  225.                                                 <%# Eval("Invoice_No") %></a>
  226.                                             <asp:Label ID="OrderStatusLbl" runat="server" Text='<%# Eval("Order_Status") %>' />
  227.                                         </ItemTemplate>
  228.                                     </asp:TemplateField>
  229.                                 </Columns>
  230.                                 <AlternatingRowStyle CssClass="alternaterow" />
  231.                             </asp:GridView>
  232.                         </ContentTemplate>
  233.                     </asp:UpdatePanel>
  234.                 </div>
  235.                 <div id="tab5">
  236.                     <asp:UpdatePanel runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"
  237.                         ID="InvoiceHistoryPnl">
  238.                         <ContentTemplate>
  239.                             <asp:GridView ID="InvoiceHistoryGrid" runat="server" AllowPaging="True" CellPadding="1"
  240.                                 CellSpacing="1" CssClass="receiptcart" GridLines="None" AutoGenerateColumns="False" Width="100%" OnPageIndexChanging="InvoiceHistoryGrid_PageIndexChanging">
  241.                                 <EmptyDataTemplate>
  242.                                     No Record Found
  243.                                 </EmptyDataTemplate>
  244.                                 <Columns>
  245.                                     <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="70px" DataField="Invoice_Date" HeaderText="Date" DataFormatString="{0:dd-MM-yyyy}" />
  246.                                     <asp:BoundField HeaderStyle-HorizontalAlign="Left" DataField="Product_Name" HeaderText="Product Name" />
  247.                                     <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderText="Invoice Number">
  248.                                         <ItemTemplate>
  249.                                             <a onclick="window.open('MyInvoice.aspx?InvoiceNo=<%# Eval("Invoice_No") %>', 'MyInvoice', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=800, height=400,top=100,left=100;');return false;"
  250.                                                 href="MyInvoice.aspx?InvoiceNo=<%# Eval("Invoice_No") %>" target="_blank" class="blacklink_sml">
  251.                                                 <%# Eval("Invoice_No") %></a>
  252.  
  253.                                         </ItemTemplate>
  254.                                     </asp:TemplateField>                                    
  255.                                     <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="70px" DataField="Price" HeaderText="Amount" DataFormatString="R {0:N2}" />
  256.                                     <asp:BoundField HeaderStyle-HorizontalAlign="Left" DataField="Invoice_Status" HeaderText="Status" />
  257.                                 </Columns>
  258.                                 <AlternatingRowStyle CssClass="alternaterow" />
  259.                             </asp:GridView>
  260.                         </ContentTemplate>
  261.                     </asp:UpdatePanel>
  262.                 </div>
  263.                 <div id="tab6">
  264.                     <Uc11:OTPUc ID="OTPUc1" runat="server" />
  265.                 </div>
  266.             </div>
  267.         </ContentTemplate>
  268.     </asp:UpdatePanel>
  269.     <br />
  270.  
  271.     <script type="text/javascript">
  272.         function DebitOrderSaveChangesBtn_click(sender, args) {
  273.             var ddSelected = (returnObjById("<%=DebitOrderIDHdn.ClientID%>")) ? returnObjById("<%=DebitOrderIDHdn.ClientID%>").value : false;
  274.             if (isEmpty(ddSelected)) {
  275.                 ShowErrorMessage("Please select one Debit Order detail by clicking modify link in the list to Save Changes");
  276.             }
  277.             else {
  278.                 if (ValidatePayment(false)) {
  279.                     __doPostBack('<%= DebitOrderUpdatePnl.ClientID%>', 'Action=DebitOrderSaveChangesBtnClick');
  280.                 }
  281.             }
  282.         }
  283.  
  284.         function DebitOrder_setup() {
  285.  
  286.             if ($get('<%=DebitOrderSaveChangesBtn.ClientID %>')) {
  287.                 $addHandler($get('<%=DebitOrderSaveChangesBtn.ClientID%>'), 'click', DebitOrderSaveChangesBtn_click);
  288.             }
  289.         }
  290.         Sys.Application.add_load(DebitOrder_setup);
  291.         $(function() {
  292.             $('#TabsContainer > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle'} });
  293.         });
  294.  
  295.         $(document).ready(function() {
  296.             $("dd").hide();
  297.             $("dt a").click(function() {
  298.                 $("dd:visible").slideUp("medium");
  299.                 $(this).parent().next().slideDown("medium");
  300.                 return false;
  301.             });
  302.         });
  303.  
  304.         $(function MoveTOOTP() {
  305.  
  306.         $("#<%=MyPrefSaveChangesBtn.ClientID%>").click(function() {
  307.             $("#tab1").hide();
  308.             $("#tab2").hide();
  309.             $("#tab3").hide();
  310.             $("#tab4").hide();
  311.             $("#tab5").hide();
  312.  
  313.             $("#tab6").slideDown("medium"); 
  314.  
  315.         });     
  316.     });
  317.     </script>
  318.  
  319. </asp:Content>

I have highlighted the lines where I am facing creating the div tabs and jquery function where i am trying to set focus for the OTP tab.

Thanks

Manoj
Mar 26 '10 #3
Frinavale
9,735 Expert Mod 8TB
Could your problem be because you don't have an element with the ID "tab6"...

See line 10 your above posted code....notice how you have a tab66 but no tab6.


In the future please just post the code that you are having problems with. It's hard to look through all that code.

Also please use code tags whenever you post code. It makes it easier for us to read and it gives us line numbers to refer to.

-Frinny
Mar 26 '10 #4
Hi,

Actually "tab66" will won't come there.

Expand|Select|Wrap|Line Numbers
  1.  
  2. function Popup_OnOkScript() { 
  3.         __doPostBack('<%= MyInfoPnl.ClientID %>', 'Action=MoveTOOTP'); 
  4.         //MoveToOTP 
  5.  
  6. <ul id="tabs" runat="server"> 
  7. <li class="tabs-nav li"><a href="#tab1"><span>My Info</span></a></li> 
  8. <li class="tabs-nav li"><a href="#tab2"><span>My Pref</span></a></li> 
  9. <li class="tabs-nav li"><a href="#tab3"><span>Debit Order</span></a></li> 
  10. <li class="tabs-nav li"><a href="#tab4"><span>Order History</span></a></li> 
  11. <li class="tabs-nav li"><a href="#tab5"><span>InvoiceHistory</span></a></li> 
  12. <li class="tabs-nav li" id="tab66" runat="server"><a href="#tab6"><span>OTP</span></a></li> 
  13. </ul> 
on Button click I am calling the below script to show the tab6. Using this i am able to show the content in the DIV. But the tab is not selected and highlighted.
Expand|Select|Wrap|Line Numbers
  1. $(function MoveTOOTP() { 
  2.  
  3.         $("#<%=MyPrefSaveChangesBtn.ClientID%>").click(function() { 
  4.             $("#tab1").hide(); 
  5.             $("#tab2").hide(); 
  6.             $("#tab3").hide(); 
  7.             $("#tab4").hide(); 
  8.             $("#tab5").hide(); 
  9.  
  10.             $("#tab6").slideDown("medium");  
  11.  
  12.         });      
  13.  
Mar 29 '10 #5
Frinavale
9,735 Expert Mod 8TB
In JavaScript there is no such thing as a .hide() method on elements. This method is part of the JQuery library.

What does it do?
(I think it would probably set the style of the element to display:none to hide it)

Now, if your list element ( the <li> element) is hidden (has a display:none) then you will not see the style change for any element within it.

-Frinny
Mar 29 '10 #6
Hi,

First i am creating DIV called "TabsContainer". Inside this DIV I am creating 6 list items as
"<li class="tabs-nav li"><a href="#tab1"><span>My Info</span></a></li>"
After this I am creating 6 DIV to show 6 Usercontrols(.ascx) as
<div id="tab1">.
Then I have written the Jquery as below:

Expand|Select|Wrap|Line Numbers
  1.  $(function() {
  2.             $('#TabsContainer > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle'} });
  3.         });
  4.  
  5.         $(document).ready(function() {
  6.             $("dd").hide();
  7.             $("dt a").click(function() {
  8.                 $("dd:visible").slideUp("medium");
  9.                 $(this).parent().next().slideDown("medium");
  10.                 return false;
  11.             });
  12.         });
  13.  
Now when I click a button in DIV 1 or DIV 2, I have to show the DIV 6(tab6).
Hope you understand my problem.

Thanks
Mar 30 '10 #7
Frinavale
9,735 Expert Mod 8TB
I moved this question to the JavaScript forum where I think you'll get more help.

Happy Coding
-Frinny
Mar 30 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Gale | last post by:
I'm working on something in jQuery with XPath What I want to do is: if checkbox is checked, set background color od label that contain input(checkbox) to red I have this code:...
4
by: Yanick | last post by:
Is it possible, with JQuery to get only one specific element ancestor ? For example : <div> <ul id="tree"> <li><a>Item 1</a> <ul id="subTree"> <li><a>Item 1.1</a></li> </ul> </li>
5
by: ziobudda | last post by:
Hi, I want ask you if, for a web portal/application, is better prototype or Jquery? I don't want to innesc some type of flame, but after the announce that drupal use JQuery and that the new...
2
by: darrel | last post by:
I'm still struggling to find a javascript/ajax library that I want to stick with for a while. JQuery is looking great these days...refined, LOTS of plug-ins, and an active community. Is...
1
by: DuaneMoraes | last post by:
A new book on jQuery, the powerful JavaScript library, has been announced by Packt In Learning jQuery, Karl Swedberg and Jonathan Chaffer, creators of the popular jQuery learning resource...
1
by: mikeh3275 | last post by:
I'm new to developing in jQuery, so I'm probably doing this wrong. I'm loading a form into a modal dialog box and I'm trying to assign a click event to the button in the form, but I can't seem to...
7
by: somnamblst | last post by:
I am using jQuery & hideAllExcept.js from this demo tute http://enure.net/dev/hide-all-except-one/ The issue is that on a page with other content, the images I have placed in the toggleThis...
83
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about...
53
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
4
by: pavanip | last post by:
Hi, I want to popup aspx page using jquery. I have written the following code <a href="Contactus.aspx?TB_iframe=true&height=250&width=200" class="thickbox" >AboutUs</a> I have called...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.