jQuery प्रभाव शो () विधि
उदाहरण
सभी छिपे हुए <p> तत्व दिखाएं:
$("button").click(function(){
$("p").show();
});
परिभाषा और उपयोग
शो () विधि छिपे हुए, चयनित तत्वों को दिखाती है।
नोट: शो () jQuery विधियों और डिस्प्ले के साथ छिपे तत्वों पर काम करता है: सीएसएस में कोई नहीं (लेकिन दृश्यता नहीं: छिपा हुआ)।
युक्ति: तत्वों को छिपाने के लिए, छुपाएं () विधि देखें।
वाक्य - विन्यास
$(selector).show(speed,easing,callback)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the show effect. Default value is 400 milliseconds Possible values:
|
easing | Optional. Specifies the speed of the element in different points of the animation. Default value is "swing" Possible values:
|
callback | Optional. A function to be executed after the show() method is completed
To learn more about callback, visit our jQuery Callback chapter |
इसे स्वयं आज़माएं - उदाहरण
का उपयोग करना किसी तत्व को छुपाने/दिखाने के दौरान गति पैरामीटर का उपयोग कैसे करें।
का उपयोग करना किसी तत्व को छुपाने/दिखाने के दौरान कॉलबैक पैरामीटर का उपयोग कैसे करें।