1.

In jQuery all the elements are selected by writing ____________(a) $(this)(b) $(“:button”)(c) $(“*”)(d) $(“.class_name”)I got this question in examination.I'd like to ask this question from Essential JavaScript and jQuery in division HTML Tables, Javascript & Jquery Basics of HTML

Answer»

The CORRECT CHOICE is (c) $(“*”)

The best I can explain: In jQuery all the elments are SELECTED by writing $(“*”). $(this) helps in selecting current HTML element. All the button elements are selected by writing $(“:button”). If we want to select a SPECIFIC class we should write $(“.class_name”).



Discussion

No Comment Found

Related InterviewSolutions