Is this an ajax call? 90% of these questions seem to come down to the
call not being completed.
On Apr 10, 1:38 pm, OhNoMrBill <[EMAIL PROTECTED]> wrote:
> Yup, agreed. Tried that method too. Both return undefined. Any other
> thoughts on why the div and/or it's contents are not showing up in the
> DOM?
>
> On Apr 9, 4:49 pm, Wizzud <[EMAIL PROTECTED]> wrote:
>
>
>
> > Your div does not actually contain any HTML, just text.
> > Try ...
> > alert($("#MyDiv").text());
>
> > On Apr 9, 8:39 pm, OhNoMrBill <[EMAIL PROTECTED]> wrote:
>
> > > I have an HTML partial coming back from a server that includes a named
> > > div (ex: <div id="MyDiv">blah</div>)
>
> > > When I try to run the following on it, it shows the div as empty:
>
> > > alert($("#MyDiv").html());
>
> > > I suspect the DOM is not aware of the retuned div (though, why it
> > > displays is then a huge mystery).
>
> > > Can anyone clarify this for me? Maybe tell me how to tap the DOM on
> > > the shoulder with the newly returned div?
>
> > > Thanks much!- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -