Quran.VerseNo.ayah( surah [, ayah] )

Gets the verse number by surah & ayah number


Quran.VerseNo.ayah( surah [, ayah] )

Surah number need to be added here

Ayah number need to be added here. default value is 1


Examples:

Example: verse number for surah & ayah number

<!DOCTYPE html>
<html>
<head>
  <style>#demo{ color:lightBlue; }</style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  <script src="http://globalquran.com/javascript/Quran.js"></script>
</head>
<body>
  <div id="demo">

</div>
<script>
$('#demo').append('Ayah: 1:1 verse number is '+Quran.verseNo.ayah(1, 1))
.append('<br />');
$('#demo').append('Ayah: 2:1 verse number is '+Quran.verseNo.ayah(2, 1))
.append('<br />');
$('#demo').append('Ayah: 2:2 verse number is '+Quran.verseNo.ayah(2, 2))
.append('<br />');
 // last verse of Quran
$('#demo').append('Ayah: 114:6 verse number is '+Quran.verseNo.ayah(114, 6))
.append('<br />');
</script>
</body>
</html>

Demo:

Comments


blog comments powered by Disqus

.