yceruto/django-ajax

Elements added after page load

clabra opened this issue · 2 comments

Hello. Does the plugin work for elements with data-ajax=true added dynamically after page load?. I can't get it to work in this case. Thanks

Be sure to add data-ajax attribute to the element,

$('<button data-href="/hello-world" data-ajax="" data-success="alert">dynamic</button>').appendTo($('body'));

if it does not work, write me your example.

I'll try to test it as soon as possible. Thanks.

Concha Labra
clabra@gmail.com

On Fri, May 9, 2014 at 9:17 PM, Yonel Ceruto González <
notifications@github.com> wrote:

Be sure to add data-ajax attribute to the element,

$('dynamic').appendTo($('body'));

if it does not work, write me your example.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-42703369
.