Don't forget to put your code in a document.ready block. Your code is
running before the element (#content) exists, because the DOM is not yet
ready:

$(document).ready(function() {
  $('#content').click(function() {
    location = 'zipcodelookup.php';
  });
});

or, shortcut:

$(function() {
  $('#content').click(function() {
    location = 'zipcodelookup.php';
  });
});

- Richard

On Mon, May 5, 2008 at 11:00 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm trying to make a TD, with id = "content", clickable.
> Unfortunately, it doesn't seem to be working -- the action is not
> invoked when I click on the TD.  Here's the code:
>
>        $('#content').click(function() {
>                location = 'zipcodelookup.php';
>        });
>
> and here's the page (the "Just Right Pricing" section is supposed to
> be clickable)
>
> http://justrightlawns.com/pricing.php
>
> Any ideas where I'm going wrong?  Thanks, - Dave
>

Reply via email to