how can i refresh div with clicked anchor href attribute?

377
November 21, 2016, at 4:47 PM

I have 2 or 3 links that related to another page of my website and I have a div tag. I want that, when I click on one of my links , the page content that its address is given to href attribute ,start to showing in my div without refresh all the page.

Answer 1

You are talking about AJAX. Just make AJAX request on click of those links and load the content in the div tag.

So your event will nned following functions-

jQuery().click(), jQuery.ajaxStart(),jQuery.get() or jQuery.load() based on your needs...

Rent Charter Buses Company
READ ALSO
Get token with Angularjs

Get token with Angularjs

I'm working on an Angularjs + Moodle + WebService APP.

482
FullCalendar - Make date not clickable

FullCalendar - Make date not clickable

I'm working with fullcalendar and am wondering if there is a way to make certain dates unclickable. The function I have so far compares all "day squares" dates on the calendar to a maximum date I have defined earlier.

461
How can I prevent a string value from getting rounded when converted to a number value?

How can I prevent a string value from getting rounded when converted to a number value?

I have an input field that accepts numeric values. I'd like to find a method that converts that that string value into a number value.

257
How to remove a class when a different template is rendered in Meteor

How to remove a class when a different template is rendered in Meteor

I am working on a website using Meteor. On one of the pages, I would like some of the images and divs at the top to be animated onto the page.

296