Top "Attributes" questions

The attributes tag should be used for any issues relating to a property of an object, element, or file, etc.

How to know if an object has an attribute in Python

Is there a way in Python to determine if an object has some attribute? For example: >>> a = …

python attributes
Python dictionary from an object's fields

Do you know if there is a built-in function to build a dictionary from an arbitrary object? I'd like to …

python dictionary attributes object metaprogramming
Difference between id and name attributes in HTML

What is the difference between the id and name attributes? They both seem to serve the same purpose of providing …

html attributes
set option "selected" attribute from dynamic created option

I have a dynamically created select option using a javascript function. the select object is <select name="country" id="…

javascript jquery select attributes option
How to change an element's title attribute using jQuery

I have an form input element and want to change its title attribute. This has to be easy as pie, …

jquery forms attributes
Define an <img>'s src attribute in CSS

I need to define an <img>'s src attribute in CSS. Is there a way to specify this …

css attributes image
Jquery - How to get the style display attribute "none / block"

Is there a way to get the style: display attribute which would have either none or block? DIV : <div …

jquery coding-style attributes
How can I create an object and add attributes to it?

I want to create a dynamic object (inside another object) in Python and then add attributes to it. I tried: …

python class object attributes
correct way to define class variables in Python

Possible Duplicate: Variables inside and outside of a class __init__() function I noticed that in Python, people initialize their class …

python class attributes
private final static attribute vs private final attribute

In Java, what's the difference between: private final static int NUMBER = 10; and private final int NUMBER = 10; Both are private and …

java static attributes private final