Javascript jQuery Method attr()
Home
Javascript
jQuery Method
attr()
Menu
Javascript
jQuery Method
jQuery Property
context
event
fx
jquery
length
size()
support
jQuery Method
add
addClass()
after()
ajax()
ajaxComplete()
ajaxError()
ajaxSend()
ajaxSetup()
ajaxStart()
ajaxStop()
ajaxSuccess()
animate()
append()
appendTo()
attr()
before()
bind()
blur()
change()
children
clearQueue()
click()
clone()
closest
contents
css()
data()
dblclick()
delay()
delegate()
dequeue()
detach()
die()
each()
empty()
eq
error()
fadeIn()
fadeOut()
fadeTo()
fadeToggle()
filter
find
finish()
first
focus()
focusin()
focusout()
get()
getJSON()
getScript()
has
hasClass()
height()
hide()
hover()
html()
index()
innerHeight()
innerWidth()
insertAfter()
insertBefore()
is
isNumeric
keydown()
keypress()
keyup()
last
live()
load()
mousedown()
mouseenter()
mouseleave()
mousemove()
mouseout()
mouseover()
mouseup()
next
nextAll
nextUntil
noConflict()
not
off()
offset()
offsetParent()
on()
one()
outerHeight()
outerWidth()
param()
parent
parents
parentUntil
position()
post()
prepend()
prependTo()
prev
prevAll
prevUntil
prop()
proxy()
queue()
ready()
remove()
removeAttr()
removeClass()
removeData()
removeProp()
replaceAll()
replaceWith()
resize()
scroll()
scrollLeft()
scrollTop()
select()
serialize()
serializeArray()
show()
siblings
slice
slideDown()
slideToggle()
slideUp()
stop()
submit()
text()
toArray()
toggle()
toggleClass()
trigger()
triggerHandler()
trim
unbind()
undelegate()
unload()
unwrap()
val()
width()
wrap()
wrapAll()
wrapInner()
Introduction
jQuery attr()
jQuery attr() get attribute value
jQuery attr() set attribute via object
jQuery attr() with callback function
jQuery attr() set attribute to an HTML Element
jQuery attr() get form action url
jQuery attr() change href attribute of a hyperlink
jQuery attr() change the image source
jQuery attr() get class list from element
jQuery attr() get class name
jQuery attr() get the current page url
jQuery attr() get the data-id attribute of an element
jQuery attr() get the id of an element
jQuery attr() set multiple attribute for the elements