I saw in some places .attr() is used in jQuery.In some places .prop() is used.But i searched in SO and google i am very confused .Please tell me the exact difference between these two and when to use them.
I have seen the following links jQuery attr vs. prop, there are a list of props? jQuery attr vs prop?
But I did not got the answer.Please help me.Thanks in advance.
Before giving a downvote please explain the reason, then I will correct in my next post.