Placeholder is an attribute or a prop

Placeholder is an attribute or a prop
0

When select with jQuery?

	$('#test').attr('placeholder', 'Full name test');

vs

	$('#test').prop('placeholder', 'Full name test');

Thanks

1 Like

placeholder is an attribute

If you look at the Jquery docs it has some info on the differences.
https://api.jquery.com/attr/
https://api.jquery.com/prop/

1 Like