PDA

View Full Version : no luck getting this to work; please help


tonywaria
06-21-2010, 02:29 AM
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

Philip M
06-25-2010, 07:57 AM
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.