Hi,
I think you need a space before the #lightboximg
Try
 "#jqmTarget".load(myUrl +" #lightboximg")

Paul

On Oct 4, 9:15 am, FineThought <nathanleighda...@hotmail.com> wrote:
> Hi,
>
> I'm brand new to jQuery and learning as I go. I've searched a lot over
> the web regarding this and need some help. I'm trying to use a string
> within a load request. The code snippet is below:
>
> var myUrl = $trigger.attr('href');
>  "#jqmTarget".load(myUrl +"#lightboximg")
>
> This works, but doesn't load the selected div. When I enter the
> following:
>  "#jqmTarget".load("lightbox.html #lightboximg")
>
> It works fine, so I know the code is fine. I just can't crack it and
> I'm sure it's really simple. Thanks in advance.

Reply via email to