Cara Random Kata Menggunakan Jquery


Contoh script Jquery Random kata :

$(document).ready(function() {
    var kata = new Array("buku", "kantong", "dompet", "pensil"),
    randno = kata[Math.floor( Math.random() * kata.length )];
    $('.quote').text( randno );
});
Smoga bermanfaat..


Previous
Next Post »