Jquery load with variables -
can tell me i'm wrong here http://jsfiddle.net/djevrek/y9rej/
what want here scan #divholder divs in page, finds if div have div class stats sa_ , then, add in div, lets (sa_icon) content load page html.html div same class (sa_icon).
so, more precise, want make icon help, , when user clicks on icon populate content in popups div content external html page.
so, in demo, solution 1 works, want it, populates divs can find, , in solution 2 (click2) doesn't work @ when i'm using jquery load variables.
in demos, i'm using load current page , finds div #documentation-info that's part of jsfiddle site. want part of code same class in popup icon div.
#divholder
should unique because ids should unique. try using class instead, should achieve more expecting results ;-)
edit: in second method, you're passing second argument load(), not correct. should be:
var url2 = "/"; var sta = "#documentation-info"; $(this).load(url2+' '+sta);
Comments
Post a Comment