President Donald Trump on Friday urged parents to get their children vaccinated after the Centers for Disease Control and Prevention announced this week that measles cases had reached a record high since the disease was declared eliminated in 2000.

"They have to get the shot. The vaccinations are so important," Trump said outside the White House on his way to Indianapolis to address the NRA. "This is really going around now, they have to get their shot."

New cases of measles reported in New York, New Jersey and California bring the total number of infections in the U.S. to at least 695 so far in 2019 according to new numbers released by CDC.

Nearly 300 students and employees at two Los Angeles universities were under quarantine Thursday and Friday after possible exposure to measles.

Trump's comments on Friday differed from his past remarks on vaccinations.

At a 2015 Republican presidential candidate debate hosted by CNN, Trump said that he wanted to change the vaccine schedule for children, erroneously linking autism to vaccines.

"Autism has become an epidemic… I am totally in favor of vaccines. But I want smaller doses over a longer period of time," he said.

In a March 2014 tweet, Trump questioned why a child "gets pumped with massive shot of many vaccines."

"Healthy young child goes to doctor, gets pumped with massive shot of many vaccines, doesn't feel good and changes — AUTISM. Many such cases!" he tweeted.

On Wednesday, New York City and suburban Rockland County confirmed an additional 37 measles cases, and California reported seven new cases. The second-highest number for measles cases in the U.S. was 667 in 2014, according to the CDC.

In New York City and Rockland County, there have been 590 cases since the measles outbreak began in October 2018. Los Angeles reported its first five cases on Monday.