Click here to Skip to main content
15,895,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two tab...in 2nd tab there is a dropdownlist & in dropdownlist selected index change,it always redirects in 1st tab,how to prevent this in javascript?
my code is :
XML
<script type="text/javascript">
    $(function () {
        var tabs = $("#tabs").tabs();
      
    });
        </script>
Posted
Updated 1-Feb-14 0:01am
v3

1 solution

Check your page load event.. possibility that you are assigning tab index to 1 on page load.but forgot to use 'postback' check..

If above is true then assign default tab index value in '(!Ispostback)' checking loop.

For more about postback refer this link
 
Share this answer
 
v2
Comments
Member 10276220 1-Feb-14 4:52am    
how to check this in javascript?
V5709 1-Feb-14 5:04am    
refer http://www.atmos.washington.edu/~carey/jQuery-ui/development-bundle/docs/tabs.html
Member 10276220 1-Feb-14 5:08am    
cannt understand...please give me the exact code....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900