Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to remove more than one attribute using jquery

Refer below example from adding multiple attribute to removing same attributes from an html element

This is for adding attribute
$("your_element_selector").attr({"checked":true,"disabled":true});

And here example of removing both attribute
$("your_element_selector").removeAttr("checked disabled");

I hope it will help you.
Thank you.
Comment

PREVIOUS NEXT
Code Example
Javascript :: mongodb mongoose push into nested array 
Javascript :: discord chatbot 
Javascript :: math.min 
Javascript :: javascript date format mm/dd/yyyy 
Javascript :: remove undefined from object js 
Javascript :: ejs display variable 
Javascript :: regex js pattern tags 
Javascript :: Converting string to json object 
Javascript :: html onchange call js function 
Javascript :: window resize next js 
Javascript :: array every javascript 
Javascript :: javascript time 
Javascript :: javascript progress of xml http request 
Javascript :: jquery option not disabled 
Javascript :: javascript class methods 
Javascript :: react webpack.config.js example 
Javascript :: multiply arrays javascript 
Javascript :: search datatable vuetify 
Javascript :: check object is null empty or undefined 
Javascript :: math random js 
Javascript :: js stop typing event 
Javascript :: remove duplicate value from array 
Javascript :: get position of element relative to document 
Javascript :: img src to file javascript 
Javascript :: Burger menu bulma React 
Javascript :: create directory when writing to file in nodejs 
Javascript :: fetching data with react 
Javascript :: append line break javascript 
Javascript :: falsy values javascript 
Javascript :: mongodb unwind 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =