Top "Attr" questions

This tag should be used for attribute related issues.

jQuery change existing img alt tag

Simple question. I am trying to change all the image alt tags on my site using jQuery. The issue I'm …

jquery attr alt
Css Content, Attr and Url in the same sentence

I have used the content attribute for a long time, and today I wanted to try something new. Instead of …

css url attr css-content
jQuery - Get image title

Really simple one but I can't work it out. How do I get the title of the image in the …

jquery attr
jQuery .attr retrieving custom attribute returns undefined

i have the following problem using jquery. I have sth like this <div id="yxz" value="1"> <span …

jquery attr
JS .checked vs jquery attr('checked'), what is the difference?

I can't figure this one out. According to W3 Schools, the checked property sets or returns the checked state of …

javascript jquery attr checked
jQuery Toggle [hidden] Attribute Bootstrap 4

Whats the best way to toggle the new "Bootstrap 4" [hidden]-Attribute. Not just hiding and showing the element with "display: …

jquery twitter-bootstrap toggle hidden attr
Get custom attribute value in Jquery?

I have this html <a data-overlay="Preparing First" href='#'>First link</a> <a …

jquery attr
Jquery length of attribute undefined

How can I check the length of the string that is in the attribute?This shows 'undefined' value: var action = $(…

jquery attr
Creating a new attribute with jQuery

Possible Duplicate: jQuery .attr retrieving custom attribute returns undefined I've got a weird problem, but I'm hoping I'm just doing …

javascript jquery image attr
Can someone explain me declare-styleable XML tag in this example and the theory behind its use?

I'm reading Beginning Android 4 Development and in chapter 5 it talks about Gallery and ImageVievs and introduces the declare-styleable XML tag …

android attr declare-styleable