jQuery addClass example
Change class name on click in jQuery
HTML
<label id="CBLC"> </label>
JavaScript
var jsonData = {"$values":[],"$type":"BUS.User.External.ExternalUserModel[], BUS.User"};
console.log(jsonData.$values[0]);
var CBLC = "";
for(var prop in jsonData[0].$values){
if(jsonData[0].$values.hasOwnProperty(prop)){
CBLC = jsonData[0].$values[prop].ExternalCode +", "+CBLC;
}
}
CBLC = CBLC.slice(0, CBLC.length-2);
$("#CBLC").text(CBLC);