के बाद एक ही टैब बनाए रखें मैं jquery टैब का उपयोग कर रहा हूं और जेएस विधि का पालन कर रहा हूं, मैं इसे पोस्टबैक के बीच टैब की स्थिति को बनाए रखने के लिए कैसे और कैसे संशोधित कर सकता हूं? (यह Page_Load के बाद पहला टैब के लिए टैब रीसेट करता है)Jquery पोस्टबैक, पोस्टबैक
$(document).ready(function() {
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
//On Click Event
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active ID content
return false;
});
मैंने पोस्टबैक का कारण नहीं होने के लिए अद्यतन पैनल का उपयोग किया। –
मैंने चयनित टैब को ट्रैक करने के लिए एक छिपे हुए फ़ील्ड का भी उपयोग किया। यह काम करता हैं। –
मैंने अद्यतन पैनल का उपयोग किया .. लेकिन जब मैं एक बटन करता हूं तो दूसरे टैब पर क्लिक करता है, पोस्टबैक ने पहला टैब दिखाया था ... वह क्यों है? – Muhammedh