CopyPastor

Detecting plagiarism made easy.

Score: 0.9323445635603408; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2015-12-24
by Nishad Up

Original Post

Original - Posted on 2015-12-24
by Nishad Up



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can select random item by class name using jquery method `eq()`
see the example bellow.
var len = $(".class").length var random = Math.floor( Math.random() * len ) + 1; $(".class").eq(random).click();
You can select random item by class name using jquery method `eq()`
see the example bellow.
var len = $(".someClass").length; var random = Math.floor( Math.random() * len ) + 1; $(".someClass").eq(random).css("background-color", "yellow");

        
Present in both answers; Present only in the new answer; Present only in the old answer;