Jquery Type Example - Jquery

How to determine the type of object in jquery?

Snippet Code

Rate this page :
  [ 0 votes]

Jquery type is used to find out the type of the object. Here, the function jQuery.type() determines the type of your content. Sample code using jquery type is given below.

<script src="https://code.jquery.com/jquery-1.10.2.js"></script> Is this string or RegExp? <b></b> <script> $( "b" ).append( "" + jQuery.type( "abc" ) ); </script>


Ask Questions

Ask Question