Click here to Skip to main content
14,773,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two 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 :
<script type="text/javascript">
    $(function () {
        var tabs = $("#tabs").tabs();
Updated 1-Feb-14 1:01am

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
Member 10276220 1-Feb-14 4:52am
how to check this in javascript?
V5709 1-Feb-14 5:04am
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