My answers

This is under the assumption that its in a document ready function.