jQuery.support Property - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:jQuery.support

Description

The jQuery.support property contains a collection of properties representing different browser features or bugs.

Syntax

Parameter Require Description
propvalue Required. function to test for.

The tests included are:

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

The following code shows how to Test whether the browser can create an XMLHttpRequest object:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("p").html("This browser can create XMLHttpRequest object: " + jQuery.support.ajax);
});/*from www  . j a  v a2s  .  com*/
</script>
</head>
<body>

<p></p>

</body>
</html>

Related Tutorials