Home > jquery (Page 2)

jQuery: Difference between remove() and detach() methods

Definition: remove() – Removes all child elements with selected element. In this method you can restore all data but not event handlers of the removed elements from the DOM. All data and events related with elements will be removed. detach() – Removes all child elements with selected elements. Even though it keeps

This Article is TAGGED in , , . Read more

jQuery: Difference between parent(), parents() and parentsUntil() methods.

Definition: parent() – Use this method to get direct parent element of the current selected element. parents() – Use this method to get all parent elements of the current selected element. parentsUntil() – Us this method to get all ancestor elements between the selector and the parameter you have selected in the parentsUntil()

This Article is TAGGED in , , , . Read more

jQuery: Difference between remove(), empty() and detach() methods

jQuery Difference between remove(), empty() and detach() methods

Definition: remove() – Removes all child elements with selected element. In this method you can restore all data but not event handlers of removed elements from the DOM. All data and events related with elements will be removed. empty() – Removes all content and child elements from the selected element. This method

This Article is TAGGED in , , , . Read more

Custom validation on default list form in SharePoint 2013

In SharePoint, there is requirement where we need to apply custom validation based on certain condition on specific column value. Validation may include show hide field, make required field, show error massage on blank form submission etc. In this article I will explain a scenario involving such validations and some functions for

This Article is TAGGED in , , , . Read more