CopyPastor

Detecting plagiarism made easy.

Score: 1.8131811618804932; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2019-02-01
by rk\_programmer

Original Post

Original - Posted on 2019-02-01
by デビット



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





<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
$(':checkbox').on('click',function() { if(this.checked) { console.log($(this).next('label').text()); } });
<!-- language: lang-html -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div class="col-6 col-12-small"> <h4>Document Submited</h4> <input type="checkbox" id="idcopy" name="checkbox"> <label for="idcopy">NIC Copy</label> <input type="checkbox" id="birthcertificate" name="checkbox"> <label for="birthcertificate">Birth Certificate</label> <input type="checkbox" id="nomineeNic" name="checkbox"> <label for="nomineeNic">Nominee NIC copy</label> <input type="checkbox" id="agreement" name="checkbox"> <label for="agreement">Agreement</label> </div>
<!-- end snippet -->

You call get all element attribute by `attr(name)` ....
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
$(':checkbox').on('click',function() { if(this.checked) { console.log($(this).next('label').attr('for')); } });
<!-- language: lang-html -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div class="col-6 col-12-small"> <h4>Document Submited</h4> <input type="checkbox" id="idcopy" name="checkbox"> <label for="idcopy">NIC Copy</label> <input type="checkbox" id="birthcertificate" name="checkbox"> <label for="birthcertificate">Birth Certificate</label> <input type="checkbox" id="nomineeNic" name="checkbox"> <label for="nomineeNic">Nominee NIC copy</label> <input type="checkbox" id="agreement" name="checkbox"> <label for="agreement">Agreement</label> </div>
<!-- end snippet -->


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