This code snippet might work:
$(document).ready(function()//When the dom is ready or just add it if you already have a .ready function
{
$("#div").css("border","1px #000000");
$('#div').mouseover(function (e) {
$("#div").css("border","1px #00800");
});
});