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


Example: verse number for surah & ayah number

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

$('#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 />');



blog comments powered by Disqus