The difference in the values of the action form in prop and attr
Here is a simple form:
<form action="hello">
</form>
If i use
var action = $('form').attr('action');
I get the correct value, hello. But if I use
var action = $('form').prop('action');
I get
http://localhost/hello
What's up with that?
I read that I should use prop () instead of attr (), but here it returns the wrong value
+4