This question has been answered earlier. I checked multiple question in SO but i am not able to understand that properly. Apologies for that.
I am using ajax and data is coming from database.
if(data.count > 0 ){
$.each(data.content, function(key, value ){
if((value.technology) != ''){
html+='<button class="form-control" disabled>'+value.technology+'</button> ';
}
i also tried this
if((value.technology6 !== 'null')){
alert(value.technology6);
html+='<button class="testsss testss" disabled>'+value.technology6+'</button> ';
}
and tried this as well
if(!(value.technology7)){
html+='<button class="testsss testss" disabled>'+value.technology7+'</button> ';
}
problem is i am getting null as output. i am not sure what am i doing wrong and what is the proper way to check null and undefined.
Thanks for your advise.