On 7/29/07, PeterKl <[EMAIL PROTECTED]> wrote:
>
> <script>
>
> $(".time-slot").mousedown(function() {
>   $(this).addClass("time-slot-selected");
> }).mouseup(function() {
>
>   $(this).addClass("time-slot-selected");
>
> });
>
> </script>
>

You need to wrap the code above in

$(function() {
  [...]
});

See
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Hello_jQueryfor
more info.

- Richard

Reply via email to