Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Not working for elements from Ajax Call(?) #28

Open
fuxifex opened this issue Dec 19, 2017 · 0 comments
Open

Not working for elements from Ajax Call(?) #28

fuxifex opened this issue Dec 19, 2017 · 0 comments

Comments

@fuxifex
Copy link

fuxifex commented Dec 19, 2017

Hi,
i've tried using livequery (both, the old and the new version) on Ajax Calls.
Here I'm applying the plugin to Link elements inside an UL:

	ul.livequery("a", function(){
		$(this).click(function(){
                       // do something
		});
	});

I'm doing an Ajax call which adds LI elements to an UL like this:

	var li = "<li value='"+id+"'><a href='#'>"+valu+"</a></li>";
	ul.append(li);

the plugin should recognize it but doesn't .. I need to reapply the events to the elements.
I'm using Chrome. Anything wrong with my code?
Thanks

UPDATE: i found out that there's issues with Jquery - I've tried jquery-3.2.1.min.js - doesn't work - downgraded to jquery-2.2.4.min.js and it works!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant