все решил проблему так:
jQuery.fn.digitalWatch = function() {
var el = $(this),
clock = this,
init = function(){
var date = new Date();
var hours = date.getHours();
var minutes = date.getMinutes();
var seconds = date.getSeconds();
if (hours < 10) hours = "0" + hours;
if (minutes < 10) minutes = "0" + minutes;
if (seconds < 10) seconds = "0" + seconds;
el.html( hours + ":" + minutes + ":" + seconds );
setTimeout(function(){
init();
}, 1000);
};
init();
}
$('#clock').digitalWatch();