Live Functions ??

Live Functions ??

Hi there,

I'm working on a project where I need to execute a function on every select box in the webapp.
So I created a jquery function lets call it 'myJqFunction'.
I use it in the $(document).unload() and this is the code I use to call it $('select').myJqFunction(); .
This all working fine in a normal website.

The problem is that the webapp uses allot of json calls and jquery which loads content into the project at a later given time. In the later loaded select boxes the 'myJqFunction' wont be attached to them. Now I tried attaching the with the following code:
  1. $('select').live('mousedown', function(){
            $(this).myJqFunction();
            $(this).die('mousedown');
    });


Sadly this code doesn't work.
It looks like the mousedown I have connected with live, can't be disconnected on a single selectbox.

The Ideal solution for the problem would be if there was a jq function which connects myJqFunction, like live connects a event handler.
Sadly I didn't encounter such a function.

Does anyone know a workaround to this or a plug-in that can do this ?