I'm curious if I can assign value within if statement, kind of:
if (a=jQuery("#user > .mask.fix > .a1").css('display')!='none'){
b = a+'hello';
//b=jQuery("#user > .mask.fix > .a1").css('display')+'hello'; //the same thing but slower because of access through DOM again, right?
}
I've tested this construction in the chrome console and looks like it works. I just want somebody to confirm it is valid in javascript and even in jQuery.
Thank you.