Please post a test case which fails in JSBin.com, and we'll be better able to help you out!
-E On Oct 13, 12:32 pm, Shadi Almosri <[EMAIL PROTECTED]> wrote: > Hiya, > > I've not been able to find an answer to this online! can someone point > out the correct syntax for this: > > var myRel = $(this).attr("rel"); > var largePath = $('a[rel*=' + myRel +']').attr("href"); > > Basicly the myRel gets set correctly, but how do i use the javascript > variable as part of the jquery selector so that i can get a selector > that looks like: > > (assuming myRel was 5)... > > var largePath = $('a[rel*=5]').attr("href"); > > Thanks in advance! > > Shadi