val() is used to fetch value from all html input types like(checkbox,text,etc),where user have an option to input
value.
Ex:-
bike
where as text() is used to fetch value from the html elements where user will not interact like (p,div etc)
Hi how are u??
Debendra