JQuery - Online Test

Total Number of Questions in this Test: 5
Total Number of Questions Answered: 0
Total Number of Questions Skipped: 0


Time left:
 
Question : 1

How to check an element is exist in a form using JQuery or not?

Options :
  •  

    if (#("myControlId")){
    // your logic goes here
    }
  •  

    if ($("#myControlId").exists){
    // your logic goes here
    }
  •  

    if ($("#myControlId")){
    // your logic goes here
    }
  •  

    if (exists("#myControlId")){
    // your logic goes here
    }