showing results for - "jquery make new variable with dynamic name"
Francisco
20 Feb 2016
1var vars = {};
2var newCount = 0;
3
4$('.hello').click(function(){
5    newCount++;
6    vars['hello' + newCount] = '<p>Hello World</p>';
7    console.log( JSON.stringify(vars) );
8});