If they are already binded they should be fine.. You can move the
elements around the DOM tree and they will have the same events as
before.. When you're doing html() you're creating new elements, and
therefore they don't have any events related to them..unless you have
an onclick attribute.. but
yes this was it.
when not using html() and setting values with "normal" dom-operations
instead I wouldn't need to rebind, correct?
jay-125 wrote:
>
>
> If you do:
>
> $(anyElement).html("blah");
>
> then you will need to do:
> $('#bla').bind("click",function(){.});
>
> after the html(
If you do:
$(anyElement).html("blah");
then you will need to do:
$('#bla').bind("click",function(){.});
after the html() call.
Does this answer your question?
On Jan 23, 11:30 am, aldana wrote:
> I am binding elements inside document.ready():
> $('#bla').bind("click",function(){.});
3 matches
Mail list logo