Skip to content

Instantly share code, notes, and snippets.

@indrajeet0510
Created March 19, 2015 05:28
Show Gist options
  • Save indrajeet0510/7499d969a2d0f88b2c85 to your computer and use it in GitHub Desktop.
Save indrajeet0510/7499d969a2d0f88b2c85 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/nebaho
<!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>
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