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();

0
No votes yet
Your rating: None