function my_check_request(comp,load='')
{
if(load==''){
var btn = jQuery(comp).button('loading');
//i will do something here
}
else{
jQuery(comp).css("display", "inline");
//i will do something here
}
Getting the warning in Netbeans - expected , but found = Any better way for this?
load=''toloadin the function declaration and add the following line:load = (typeof load !== 'undefined') ? load : '';within the function body.