print_r() equivalent in jQuery
var my_object = new Object();
my_object["employeename"] = "Alex";
my_object["surname"] = "pandian";
my_object["sex"] = "M";
alert(data.toSource()); //Will give "({employeename:"Alex", surname:"pandian", sex:"M"})"
print_r() equivalent in jQuery, Romel Drupal, most popular equivalent in jQuery, romel jquery, jquery romel, javascript romel, romel javascript, javascript, jquery
//It might not work in <=IE6
my_object["employeename"] = "Alex";
my_object["surname"] = "pandian";
my_object["sex"] = "M";
alert(data.toSource()); //Will give "({employeename:"Alex", surname:"pandian", sex:"M"})"
//It might not work in <=IE6
Comments