Top "Attr" questions

This tag should be used for attribute related issues.

How do I add selectableItemBackground to an ImageButton programmatically?

android.R.attr.selectableItemBackground exists, but how do I add it programatically to an ImageButton? Also, how would I go …

android attr r.java-file
How to remove class from all child elements

I have a html like: <table id="message"> <tr class="clsaa1"> <td> <div …

jquery html attr
How to replace element's attr href with each ? // strip url

im trying to change href with each method, here is demo, inspect a, you'll see there is no change html: &…

jquery href each attr
how to get option title="sample" using jquery

I'm trying to update a hidden field based on the a title attribute on a select option, I've tried the …

jquery select option attr
Using jQuery .attr or .prop to set attribute value not working

I've created a button with attribute named 'loaded' and initial value of 'no'. Upon clicking the button I'm running some …

javascript jquery attr prop
How do I set an attr_accessor for a dynamic instance variable?

I dynamically created an instance variable within my class: class Mine attr_accessor :some_var def intialize @some_var = true …

ruby instance-variables attr attr-accessor
Alternative for jQuery attr() in IE?

Ok, correct me if I'm wrong, but I take it that jQuery attr() does NOT work in IE. (marked wontfix) …

javascript jquery internet-explorer attr
jquery - if href attr == ""

I am trying to find out if a href attr is empty do something, my code is as follows... jQuery(…

jquery if-statement href attr
Why does jQuery val() function not update attribute 'value'?

I came across with this issue way after I completed the website since I had to implement history in ajax …

jquery input attr
jQuery attr() fails to set attribute

I am trying to rotate an image via svg's transform. This is the code I have: <svg width="100" height="100"&…

javascript jquery svg attr