jQuery hide() နည်းလမ်း
ဥပမာ
<p> အစိတ်အပိုင်းအားလုံးကို ဝှက်ထားရန်-
$("button").click(function(){
$("p").hide();
});
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
hide() method သည် ရွေးချယ်ထားသော အစိတ်အပိုင်းများကို ဝှက်ထားသည်။
အကြံပြုချက်- ၎င်းသည် CSS ပိုင်ဆိုင်မှု display:none နှင့် ဆင်တူသည်။
မှတ်ချက် ။
အကြံပြုချက်- လျှို့ဝှက်ဒြပ်စင်များကို ပြသရန် show() နည်းလမ်းကို ကြည့်ပါ။
အထားအသို
$(selector).hide(speed,easing,callback)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the hide 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 hide() method is completed
To learn more about callback, visit our jQuery Callback chapter |
သင်ကိုယ်တိုင်စမ်းကြည့်ပါ - ဥပမာများ
ဒြပ်စင်တစ်ခုကို ဝှက်ထား/ပြသသည့်အခါ အမြန်နှုန်း ကန့်သတ်ဘောင်ကို အသုံးပြုနည်း။
ကိုအသုံးပြု၍ element တစ်ခုကို ဝှက်ထား/ပြသသည့်အခါ callback parameter ကိုအသုံးပြုနည်း။