[jQuery] simple query does not work

[jQuery] simple query does not work


i am making this(it does not work) :
$(document).ready(function(){
$("div#photolinks img").get(0).css("border","5px solid black;");
});
if i do this:
$(document).ready(function(){
$("div#photolinks img").css("border","5px solid black;");
});
it does work, whats wrong?
thanks