changing a img src

changing a img src

hi i'm trying to change a images source with the following code: $('#photo').attr('src','IMG_0021.JPG'); can anyone tell me why i get an error msg: Untitled-1.htm:11 Uncaught ReferenceError: $ is not defined. thanks