<div id="divbindProject" class="col-sm-2"></div> <div id="divbindProjectlist" style="display:none" class="col-sm-3"> <div> <a class="list-group-item active left-menu-head">Projects List</a> <a href="#" id="idProject" class="list-group-item"></a> </div> </div>
$("#btnAddProject").click(function (e) { var json = {}; debugger; $.each($('#frmSubmitPremUserProject').serializeArray(), function (i, field) { json[field.name] = field.value || ''; }); $("#divbindProject").hide(); $("#divbindProjectlist").show(); $.each(json, function (i, field) { $("#idProject").append(field.name + ":" + field.value + " "); }); var str = JSON.stringify(json); $("#hdPremUserProject").val(str); });
for (var i in json) { $("#idProject").append(i+ ":" + json[i]+ " "); }
$.each(json, function (i, field) { $("#idProject").append(field.name + ":" + field.value + " "); });
for (var i in json) { if(i == 'Projectname') $("#idProject").append(i + ":" + json[i] + " "); }
$("#idProject").append( '<a herf="#" >' + i + ":" + json[i] + " " + '</a>');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)