jQuery jQuery.support Attribute

Example

Test if the browser can create XMLHttpRequest object:

$.ready(function(){
  $("p").html("This browser can create XMLHttpRequest object: ") + jQuery.support.ajax);
});

Try it yourself

Definition and Usage

The jQuery.support property includes a set of properties representing different browser features or vulnerabilities.

This property is mainly used for internal use by jQuery.

Syntax

jQuery.support.propvalue
Attribute Description
propvalue

Required. Specifies the functionality to be tested. These tests include:

  • ajax
  • boxModel
  • changeBubbles
  • checkClone
  • checkOn
  • cors
  • cssFloat
  • hrefNormalized
  • htmlSerialize
  • leadingWhitespace
  • noCloneChecked
  • noCloneEvent
  • opacity
  • optDisabled
  • optSelected
  • scriptEval()
  • style
  • submitBubbles
  • tbody