Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is the use of param() method?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 364
    Comment on it

    Hello Readers,

    param() method is the jquery method and is used to perform the array or jquery object in a serialization or in serialize manner.

    Syntax :

    $.param(object | array, boolValue)
    

    Parameters :

    object | array - this is a required parameter which specifies an array or an object to be serialized.

    boolValue - this is a Optional parameter which specifies the boolean value which show the object or array are in serialized form or not.

    For Example :

    personObj=new Object();
    
    empObject.name="Arpit";
    
    empObject.age="24";
    
    empObject.dept=IT;
    
    $("#clickme").click(function(){
    
    $("span").text($.param(empObject));
    
    });
    

    In the above code, set the text of span to

    "name=Arpit&age=24&dep=IT"
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: