Created
May 29, 2013 23:54
-
-
Save abouolia/084cdb9fdbc52c443a8b to your computer and use it in GitHub Desktop.
Experience naming IDs or Classes in language Arabic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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