javascript - how to get element attributes (i.e id,name,style,etc) values -



javascript - how to get element attributes (i.e id,name,style,etc) values -

i have no thought what do. need id of control(element/tag),

when key on command . if more attributes(name,style,etc) exist attribute values also.

thank you.

according jquery: id class selector

$('.clsname').click(function() { alert( this.id ); });

i have tested properly.

javascript jquery

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -