Top "Attr" questions

This tag should be used for attribute related issues.

Open all links in new tabs with jQuery

I have some links that are placed in my page dynamically via JSON and have no way to directly edit …

jquery anchor target attr
delay() and fadeOut() don't delay attr() in the queue

what is wrong in this code? I'm trying to get this effect: fadeOut(500) and attr('class','myClass') delayed by 600 millisecs.. …

jquery delay attr
jQuery - How to select value by attribute name starts with

I want to select attribute value by giving attribute name (only starts with) For instance if we have html tag &…

jquery selector attr startswith
jQuery .prop() returns undefined, while .attr() works as expected for data-*

I am simply trying to get a couple of properties from two elements. Getting the property value from the input …

javascript jquery html attr prop
Should href be set with prop() or attr()?

If I want to change the href of a link dynamically, should I do so using prop() or attr()?

jquery attr prop
Android: Default attributes for custom views

I have a custom view that extends one of the framework classes. Most Views in Android have some default attributes …

android attributes custom-controls attr
Creating default style with custom attributes

So here's my problem: I've created a custom component which extends the Button This button has one attribute called testAttr. &…

android styles themes attr
Why jQuery 1.9+ attr() method not deprecated?

Can I, a jQuery1.9+ software developer, "deprecate" the use of the attr() method in my day-by-day work? As showed in …

jquery deprecated attr prop
Create new image element using the src of image in another div using jquery

<div id='show-image'></div> <div class='post'> <div class='inner'> <img …

jquery src attr
IE7 / IE8 interaction with JQuery .removeAttr('disabled'), not applying css

This is more of a curiosity than a question, but I'm wondering why the following isn't working. Say I have …

jquery css internet-explorer attr