Created
March 19, 2015 05:28
-
-
Save indrajeet0510/fabfe48ebe8f4653094e to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/nebaho
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="container"></div> | |
<script id="jsbin-javascript"> | |
var str = 'Token,TID,MasterID,FolderTitle,RuleFunction,RuleType,CountryID,MatchAdminLevel,MappedNames,Latitude,Longitude,Proximity,DefaultFolder,FolderStatus,SeqNoFrefix'; | |
var arr = str.split(','); | |
var string = "{<br/>"; | |
for(var i = 0; i < arr.length; i++){ | |
string += arr[i]+ " : " + "null , <br/>"; | |
} | |
string += "}"; | |
$("#container").html(string); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//code.jquery.com/jquery-2.1.1.min.js"><\/script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="container"></div> | |
</body> | |
</html></script> | |
<script id="jsbin-source-javascript" type="text/javascript">var str = 'Token,TID,MasterID,FolderTitle,RuleFunction,RuleType,CountryID,MatchAdminLevel,MappedNames,Latitude,Longitude,Proximity,DefaultFolder,FolderStatus,SeqNoFrefix'; | |
var arr = str.split(','); | |
var string = "{<br/>"; | |
for(var i = 0; i < arr.length; i++){ | |
string += arr[i]+ " : " + "null , <br/>"; | |
} | |
string += "}"; | |
$("#container").html(string);</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str = 'Token,TID,MasterID,FolderTitle,RuleFunction,RuleType,CountryID,MatchAdminLevel,MappedNames,Latitude,Longitude,Proximity,DefaultFolder,FolderStatus,SeqNoFrefix'; | |
var arr = str.split(','); | |
var string = "{<br/>"; | |
for(var i = 0; i < arr.length; i++){ | |
string += arr[i]+ " : " + "null , <br/>"; | |
} | |
string += "}"; | |
$("#container").html(string); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment