You want a deep extend
$.extend(true, {}, x, y);
See the docs for jQuery.extend([deep], target, object1[, objectN])
More Related Contents:
- PLEASE assist me.. RE: *FORM FIELDS* I want to Hide() my "type=text box" until the Other option is chosen in the dropdown option
- How do I prevent a parent’s onclick event from firing when a child anchor is clicked?
- How to reload current page without losing any form data?
- Difference between jQuery `click`, `bind`, `live`, `delegate`, `trigger` and `on` functions (with an example)?
- Uncaught TypeError: Cannot read property ‘msie’ of undefined – jQuery tools
- Semicolon before self-invoking function? [duplicate]
- How do I synchronize the scroll position of two divs?
- Hide div after a few seconds
- Mobile Safari: Javascript focus() method on inputfield only works with click?
- Using jQuery how to get click coordinates on the target element
- jQuery UI Tabs – How to Get Currently Selected Tab Index
- How to prevent page from reloading after form submit – JQuery
- Jquery Ajax prevent fail in a deferred sequential loop
- prevent mobile default keyboard when focusing an from showing
- Get translate3d values of a div?
- Jquery: how to sleep or delay?
- How to get the html of a div on another page with jQuery ajax?
- Detect if an alert or confirm is displayed on a page
- jQuery Standards and Best Practice [closed]
- Calculate Position of selected text javascript/JQuery?
- jQuery 3 slim ajax basic example
- Trigger events when the window is scrolled to certain positions
- Get content of span
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- Jquery: Filter dropdown list as you type [closed]
- Convert JavaScript variable value to csv file
- How to stop user from printing webpages? using javascript or jquery
- How should I crop an image at client side using jcrop and upload it?
- How to avoid conflict between JQuery and Prototype
- Removing element with jQuery?