Difference between event.preventDefault() and return false

preventDefault() prevents the default event from occuring, stopPropagation() prevents the event from bubbling up and return false does the both. Example of preventDefault() and return false: $(‘a’).click(function() { return false; }); $(‘a’).click(function(e) { e.preventDefault(); }); So finally, return false from within a jQuery event handler is effectively same as calling both e.preventDefault and e.stopPropagation on […]

Curriculum vitae

Curriculum vitae or CV (also called “vitas”) and resume both have similar purposes that provides key information about your skills, education, experiences and personal qualities which shows you as a ideal candidate. Curriculum vitae sometimes called a CV or vita which tends to be used more for scientific & teaching positions than a resume. So […]

Traversing Siblings

The jQuery  siblings() method returns all the sibling elements of the selected element. For example: $(“div”).siblings(); But if you want to filter the search for siblings then you can use an optional parameter. $(“div”).siblings(“p”); Read Also: Select an element with multiple classes in jQuery jQuery clone – create a deep copy of matched elements Suppose […]