Forums

Give help. Get help.

  • # July 26, 2008 at 10:07 pm

    Hi all,

    I’m trying to dynamically give a table row a red dashed border whenever a person mouses over it. My jQuery code is this:

    $(‘table#timeline tr’).mouseover( function() {
    $(this).css("border","3px dashed red");
    })

    The jQuery code isn’t important. I know that part works because I’ve used the css function to change the background color instead and that works just fine. However, when I apply it to the table tr’s, the border does not change at all. I also tried changed it with Firebug and that did not seem to work either. Any ideas what might be wrong?

    Thanks all!
    Dave

    # August 17, 2008 at 11:06 pm

    Yes, Chris, you’re right. I found out eventually. That kind sucks, but you do have to change the sizes of the individual cells, although jQuery selectors do make that easy :)

    Was used in this greasemonkey script if interested: http://whatthetweet.daves-lab.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag