When ever I add listeners to things like drop down options so e.g.
$("select").change(function () {
or when I want something done as soon as the page is loaded e.g.
$(".filter").each(function () {
(where "filter" is just the class name that certain elements have)
I tend to put in $(document).ready(function () {
is there a better way (in terms of design) to do things like this, I am just trying to get into better habits, or can anyone refer me to articles where topics like this one are discussed at in length. Just to better myself.