Top "Attributes" questions

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

Determine if CSS property is set to a certain value?

Just wondering how to determine a jQuery statement like this if( $("#test").css('display', 'block') == true) { return true; } Basically, I …

jquery attributes hide show
HttpPost vs HttpGet attributes in MVC: Why use HttpPost?

So we have [HttpPost], which is an optional attribute. I understand this restricts the call so it can only be …

asp.net-mvc attributes http-post http-get
How to access object attribute given string corresponding to name of that attribute

How do you set/get the values of attributes of t given by x? class Test: def __init__(self): self.…

python object attributes
Angularjs dynamically set attribute

I'm trying to dynamically add attribute to div in controller in angular js. var table = document.getElementById("div_id").setAttribute("…

javascript angularjs attributes setattribute
What’s the purpose of the HTML "nonce" attribute for script and style elements?

W3C says there is a new attribute in HTML5.1 called nonce for style and script that can be used …

html attributes content-security-policy nonce
How enumerate all classes with custom class attribute?

Question based on MSDN example. Let's say we have some C# classes with HelpAttribute in standalone desktop application. Is it …

c# class attributes custom-attributes enumerate
Set attributes from dictionary in python

Is it possible to create an object from a dictionary in python in such a way that each key is …

python dictionary properties attributes initialization
Localization of DisplayNameAttribute

I am looking for a way to localize properties names displayed in a PropertyGrid. The property's name may be "overriden" …

c# visual-studio-2008 localization attributes
How to Compare Flags in C#?

I have a flag enum below. [Flags] public enum FlagTest { None = 0x0, Flag1 = 0x1, Flag2 = 0x2, Flag3 = 0x4 } I cannot …

c# .net enums attributes flags
Change Attribute's parameter at runtime

I am not sure whether is it possible to change attribute's parameter during runtime? For example, inside an assembly I …

c# reflection attributes