I'm currently studying jquery and have noticed most of the method in jquery have a setting and getter version. i.e. the method is used as a setter or as a getter, depending on the type/number of arguments passed to the method.
A example would be the jquery offset() method.
But I have also noticed that the jquery position() method only have a getter version, and its setter version is missing.
Does anyone have any idea why the position()
method does not have a setter version? I'm not exactly sure but I think a setter version would be useful in certain situations.
from why jquery position() method does not have a setter version
No comments:
Post a Comment