confirm only 1 time function with jquery
Posted
by robertdd
on Stack Overflow
See other posts from Stack Overflow
or by robertdd
Published on 2010-04-24T01:13:46Z
Indexed on
2010/04/24
1:23 UTC
Read the original article
Hit count: 330
i have this function that will shuffle a list of images, when i press on a #shuffle button i want to trigger a message, if is confirmed the second time i will not want to ask again!
how to code this?
$('#shuffle').click(function(){
if(confirm('This will shuffle all your bla bla bla')){
$("#upimagesQueue li").shuffle();
}
});
© Stack Overflow or respective owner