
Originally Posted by
droidus
Code:
function checkName(){
if(condition){ /* What is condition ? */
// show bad image for status
return false;
} else {
// show good image for status
checkFields(); /* Function's return value isn't being used*/
return true;
}
}
when i type in a valid name, the checkmark next to it appears. but then the checkmark next to the section header is not showing. what could be wrong?
You have shown nothing that might control such a display.
Where used, return should be executed unconditionally and always as the last statement in the function.
That's my signature, it's not part of the damn post!
Bookmarks