[eluser]Philo01[/eluser]
Hi there!
I'm working on a jQuery plugin for my application.
Somehow jQuery Live works for if I use it to check if a form is submitted:
Code:
$(o.submitForm).live("submit",function()
Now I also monitor a button using the following code:
Code:
$(this).click(function () {
This works, but I need it work after content is loaded via ajax.
Normally I would use the live method like this:
Code:
$(this).live("click",function() {
But somehow this is not working.
Does anyone know if this has to do because its written in a plugin?
Kind regards,
Philo
Edit
-----------
Somehow this works:
Code:
$('#user_list .edit').ajaxForms({
button:'#user_list .edit'
});
If I then call this config:
Code:
$(o.button).live("click",function() {
This is kinda wierd because "this" links to the same object as I defined manualy in the button config"#user_list .edit".