Ok, You should “construct” the html and find the .content div.
like this:
$.ajax({
url:href,
type:'GET',
success: function(data){
$('#content').html($(data).find('#content').html());
}
});
Simple!
More Related Contents:
- When we using alert vs popup div tag? [closed]
- Dynamically adding div on button click and changing Id of each?
- How to change the href attribute for a hyperlink using jQuery
- jQuery Get Selected Option From Dropdown
- How to take screenshot of a div with JavaScript?
- How to detect Ctrl+V, Ctrl+C using JavaScript?
- How to show Page Loading div until the page has finished loading?
- Jquery load() only working in firefox?
- Play an audio file using jQuery when a button is clicked
- How to close an open collapsed navbar when clicking outside of the navbar element in Bootstrap 3?
- Use images like checkboxes
- How to manually trigger validation with jQuery validate?
- Drop-down box dependent on the option selected in another drop-down box
- Getting Bootstrap’s modal content from another page
- Sort an html list with javascript
- Run change event for select even when same option is reselected
- How can I generate the opposite color according to current color?
- JQuery Slider, how to make “step” size change
- How to swipe top down JQuery mobile
- Best way to execute js only on specific page
- jQuery: Slide left and slide right
- How can I get all a form’s values that would be submitted without submitting [duplicate]
- Get value from text area [duplicate]
- How to show hidden divs on mouseover?
- Using .after() to add html closing and open tags
- Changing “src” attribute of
- jQuery Popup Bubble/Tooltip [closed]
- How to call parent window function from child window jquery?
- jquery .ready and height of element
- Parsing returned HTML from jQuery AJAX request