Can i use attr instead of val. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

Can i use attr instead of val.

$(function() { alert($("#name").attr("value")); });

26th Jan 2018, 10:24 AM
Prajith P
Prajith P - avatar
1 Réponse
+ 1
ya sure Why not?
27th Jan 2018, 9:03 PM
Shakir Dodhiya
Shakir Dodhiya - avatar