harvesthq/chosen — Issue #334: Chosen and jQuery prop() vs attr()
Author: pfiller
Created: 2011-11-02 16:49:18+00:00
State: open

As reported in #327, jQuery 1.6 adds the ``prop()`` function and makes a change to ``attr()``. When setting properties directly on a DOM element, Chosen should probably move away from either so support can extend across multiple versions of jQuery.

Think

````javascript
@is_disabled = @form_field_jq[0].disabled
````

Not

````javascript
@is_disabled = @form_field_jq.attr "disabled"
````

There's a good discussion on Stack Overflow regarding this issue:
http://stackoverflow.com/questions/5874652/prop-vs-attr