jQuery attribute operation - removeAttr() method
example
remove id attribute from any p element:
$("button").click(function(){ $("p").removeAttr("id"); });
definition and usage
removeAttr() মথড নির্বাচিত এলিমেন্ট থেকে অ্যাট্রিবিউট সরিয়ে নেয়
syntax
$(selector).removeAttr(attribute)
parameter | description |
---|---|
attribute | প্রয়োজনীয়।উল্লিখিত এলিমেন্ট থেকে অ্যাট্রিবিউট সরিয়ে নেওয়ার জন্য |