jQuery("#tabs").tabs("option", "selected") returning object object

jQuery("#tabs").tabs("option", "selected") returning object object

  1. <script>

                jQuery(window).load(function(){
                    jQuery("#tabs").tabs();
                    alert(jQuery("#tabs").tabs("option", "selected") + " is selected");
                    jQuery( ".tabselect" ).bind( "click", function(event) {
                        jQuery("#tabs").tabs("select","#tab-4");
                         event.preventDefault();
                    });
                   
                });
            </script>










For some reason the above code is returning an object and not the ID of the selected tab.  The rest of the code is being used to stop the page from scrolling up to the anchor link