Welcome to plsql4all.blogspot.com SQL, MYSQL, ORACLE, TERADATA, MONGODB, MARIADB, GREENPLUM, DB2, POSTGRESQL.

Monday, 2 June 2014

JavaScript for PostBack of Current Tab in jQuery Button Click

<script type="text/javascript">
        var selTab;
        $(function () {
            var tabs = $("#tabs").tabs({
                show: function () {
                    //get the selected tab index
                    selTab = $('#tabs').tabs('option', 'selected');

                }
            });

        }); ;

        function pageLoad(sender, args) {

            if (args.get_isPartialLoad()) {

                $("#tabs").tabs({ show: function () {
                    //get the selected tab index on partial postback
                    selTab = $('#tabs').tabs('option', 'selected');

                }, selected: selTab
                });

            }
        };
     
    </script>

No comments:

Post a Comment

Please provide your feedback in the comments section above. Please don't forget to follow.