Wednesday, January 28, 2009

[jQuery] Re: function after "each" -loop

Just put the call after the each loop

$(document).ready(function() {
$("input[@name='category']").each(function(){

});
LoopComplete();
});
function LoopComplete() {
alert("All done with loop!");
}


On Jan 28, 10:13 am, johannesF <johannes.foss...@gmail.com> wrote:
> Hi
>
> Need som smart advice here, I have a "each"loop like this.
>
> $("input[@name='category']").each(function(){
>
> });
>
> And then I want to run a function after the "each" i done Is that
> possible?
>
> all the best / johannes

No comments: