@leo848 $(this).val() just wraps this.value - it's one extra function call to get to the same piece of data, making it unnecessary. Sets the uninstallation hook for a plugin. For it, you need to set default value in function: So, if option value not set or avaiable than default value assigned to variable. A multiple select box allows a user to select multiple options. Syntax: Get value : $(selector).val() Set value : $(selector).val(value) Example 2: This example describes the jquery val() method to fetch the values from the input field. How do I simplify/combine these two methods for finding the smallest and largest int in an array? Retrieves an array of media states from an attachment. target Identifies the element(s) in the page to be updated with the server response. Similarly, you can retrieve the selected values from multiple select boxes with a little trick. Retrieves the permalink for the current page or page ID. Handles sending a password retrieval email to a user. If