jquery fadeIn not working

Unless the element is hidden, no fade will occur, you need something like this: You can give it a try here, also $() is deprecated in 1.4+, you should use $(document) or the shorter version, like this: The alternative is to give the element a display: none initially but this breaks for JS-disabled users, or if JavaScript errors occur preventing the fade, so … Read more

correct way of comparing string jquery operator =

No. = sets somevar to have that value. use === to compare value and type which returns a boolean that you need. Never use or suggest == instead of ===. its a recipe for disaster. e.g 0 == “” is true but “” == ‘0’ is false and many more. More information also in this … Read more