I have a html page with
<html> tag where I want to add
lang="ar" attributes using jQuery when user click on arabic language in drop-down.
I tried using
But it returns undefined. Can somebody help as I’m new to jQuery
There is an error on your code, the “html” tag should be written with quotes as folows: