Prop Jquery Support
## jQuery.support Property
The `jQuery.support` property is a collection of properties that represent different browser features or bugs (user agent capabilities). It is primarily used internally by jQuery to handle cross-browser compatibility issues, but it is also available for developers to perform Feature Detection.
---
## Definition and Usage
Instead of relying on user-agent sniffing (checking `navigator.userAgent` to see which browser the user is running), `jQuery.support` uses **feature detection**. This determines whether a specific feature is supported by the current browser, allowing you to write more robust, future-proof code.
> **Note:** This property is primarily designed for jQuery's internal use. In modern web development, it is highly recommended to use dedicated feature detection libraries like **Modernizr** for complex feature testing.
---
## Syntax
```javascript
jQuery.support.propvalue
```
Or using the `$` alias:
```javascript
$.support.propvalue
```
### Parameters
| Parameter | Type | Description |
| :--- | :--- | :--- |
| `propvalue` | *String* | **Required.** The specific browser feature or bug you want to test. |
### Available Properties (`propvalue`)
Below are some of the key properties available in `jQuery.support` (availability may vary depending on the jQuery version):
* **`ajax`**: Returns `true` if the browser is capable of creating an `XMLHttpRequest` object.
* **`boxModel`**: Returns `true` if the document renders using the W3C CSS Box Model (usually false in IE Quirks Mode). *Deprecated in jQuery 1.8.*
* **`changeBubbles`**: Returns `true` if the `change` event bubbles up the DOM tree (as per W3C standards).
* **`checkClone`**: Returns `true` if the browser correctly copies the checked state of radio buttons or checkboxes when cloning DOM nodes.
* **`checkOn`**: Returns `true` if a checkbox's default value is `"on"` when no value attribute is specified.
* **`cors`**: Returns `true` if the browser supports Cross-Origin Resource Sharing (CORS) via `XMLHttpRequest`.
* **`cssFloat`**: Returns `true` if the style property name for float is `cssFloat` (as per W3C standards).
* **`hrefNormalized`**: Returns `true` if the browser leaves the `href` attribute value intact rather than normalizing it to a fully qualified URL.
* **`htmlSerialize`**: Returns `true` if the browser is able to serialize HTML elements using the `innerHTML` property (specifically relevant to legacy IE behavior with `` elements).
* **`leadingWhitespace`**: Returns `true` if the browser preserves leading whitespace when using `innerHTML`.
* **`noCloneChecked`**: Returns `true` if cloned DOM elements do not inherit the checked state of their source elements.
* **`noCloneEvent`**: Returns `true` if cloned DOM elements do not clone their associated event handlers.
* **`opacity`**: Returns `true` if the browser supports the CSS `opacity` property (legacy IE used `filter` instead).
* **`optDisabled`**: Returns `true` if option elements inside a disabled select element are automatically marked as disabled.
* **`optSelected`**: Returns `true` if an `
YouTip