jQuery निकालेंएटर () विधि :
❮ jQuery के एचटीएमएल/सीएसएस तरीके
उदाहरण
सभी <p> तत्वों से शैली विशेषता निकालें:
$("button").click(function(){
$("p").removeAttr("style");
});
परिभाषा और उपयोग
RemoveAttr () विधि चयनित तत्वों से एक या अधिक विशेषताओं को हटा देती है।
वाक्य - विन्यास
$(selector).removeAttr(attribute)
Parameter | Description |
---|---|
attribute | Required. Specifies one or more attributes to remove. To remove several attributes, separate the attribute names with a space |
इसे स्वयं आज़माएं - उदाहरण
से id और वर्ग विशेषता को कैसे निकालें।
❮ jQuery के एचटीएमएल/सीएसएस तरीके