EvilZone

Programming and Scripting => Web Oriented Coding => : Ethereal September 18, 2014, 01:12:00 PM

: Jquery litle help
: Ethereal September 18, 2014, 01:12:00 PM
How i can add automatic array element after click function is end.

:
$(document).ready(function(){
   $('.img').click(function(){
        $('.img').hide();
        var link = "img/" + myFunc(); //function get 1 random element from image name array
$(this).show("slide", { direction: "right" }, 300).attr("src","/slider/" +  link);
});

So after this click function image slide from left and then gone to right side. How to add new picture after click function is over (write a code for example) and sorry for my english :/