Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    no luck getting this to work; please help

    I have some code like this

    alert($("\'" + "#" + m + "\'"));

    $("\'" + "#" + m + "\'").css('display','inline');
    // $("#ds4").css('display','inline');

    leftval = getPosLeft(el);
    $("\'" + "#" + m + "\'").css('left',leftval);
    // $("#ds4").css('left',leftval);

    heightval = getPosHeight(el);
    $("\'" + "#" + m + "\'").css('top','heightval');
    // $("#ds4").css('top','heightval');

    m is being passed to javascript and its value is ds4. If I put it inside jquery selector it doesn't work.

    What I'm trying to do is - make the div - ds4 - visible - when user points the mouse over it.

    It works fine using the hardcoded values. Don't know why it doesn't work inside selector.

    I would sincerely appreciate your help.
    Thanks in advance
    Tony

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,173
    Thanks
    203
    Thanked 2,549 Times in 2,527 Posts
    See:- http://www.codingforums.com/showthread.php?t=17515.
    You will not get any reply in this forum which is intended to be used only to
    post a completed (working) script for showcasing/benefit of others.

    Suggest you read the form rules and posting guidelines.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •