Skip to content

Instantly share code, notes, and snippets.

@abouolia
Created May 29, 2013 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abouolia/084cdb9fdbc52c443a8b to your computer and use it in GitHub Desktop.
Save abouolia/084cdb9fdbc52c443a8b to your computer and use it in GitHub Desktop.
Experience naming IDs or Classes in language Arabic.
<html>
<head>
<meta charset="UTF-8">
<title>Test</title>
<style type="text/css">
#احمد{
background: red;
height: 100px;
width: 100px;
display: block;
}
</style>
</head>
<body>
<div id="احمد">كيف حالك ؟</div>
<script type="text/javascript">
val = document.getElementById("احمد");
val = val.innerText;
alert(val);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment