jQuery : To check if an element is present in the page or not
This is a precautionary measure that you can adopt, if you are doubtful about the presence of a particular control in the page. Under normal scenarios, in case if the element is not there, it would throw an error. But you can now check if that particular element is present in the page or not, ...
Center aligning div elements
Well, in most of the scenarios in a web designing art, you might come across one wherein you have to center align a div tag, without affecting the text in it. Your first thought might be text-align:center; But if you want to center align the div alone, leaving the text alignment to be unaffected, you ...