jQuery jQuery.support Propriété

❮ Propriétés jQuery

Exemple

Testez si le navigateur peut créer un objet XMLHttpRequest :

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

Définition et utilisation

La propriété jQuery.support contient une collection de propriétés représentant différentes fonctionnalités ou bogues du navigateur.

Cette propriété était principalement destinée à l'usage interne de jQuerys.


Syntaxe

jQuery.support.propvalue

Parameter Description
propvalue Required. Specifies the 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

❮ Propriétés jQuery