Question:Consider the following code snippet:
$(document).ready(function() {
  $('div').each(function(index) {
    alert(this);
  });
});
Which of the following objects does the 'this' variable refer to? 

A window 

B document 

C The current div tag of the iteration. 

D The last element tag in the body. 

+ Answer
+ Report
Total Preview: 1048

Copyright © 2024. Powered by Intellect Software Ltd