CHICAGO, July 31 (Reuters) - Republican presidential candidate Donald Trump said on Wednesday that he was against everyone having an electric car despite the endorsement of billionaire Elon Musk, the CEO of electric carmaker Tesla .

"Elon Musk endorsed me and he is a friend of mine, ... but I am against everybody having an electric car," Trump said while speaking at the National Association of Black Journalists conference in Chicago.

(Reporting by Trevor Hunnicutt, Kanishka Singh and Doina Chiacu; Editing by Leslie Adler)