Interview Questions

Jquery - Selecting Element based on data-attr

Use the following code to select a tag or field based on data-attr attribute in HTML 5.

$('[data-attr="techdive"]').val();

5
Average: 5 (1 vote)
Your rating: None