Quran.VerseNo.surah( surah )

Gets the verse number by surah number


Quran.VerseNo.surah( surah )

Surah number need to be added here


Examples:

Example: verse number for surah

<!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('Surah: 1 verse number is '+Quran.verseNo.surah(1))
.append('<br />');
$('#demo').append('Surah: 2 verse number is '+Quran.verseNo.surah(2))
.append('<br />');
$('#demo').append('Surah: 3 verse number is '+Quran.verseNo.surah(3))
.append('<br />');
 // last surah of Quran
$('#demo').append('Surah: 114 verse number is '+Quran.verseNo.surah(114))
.append('<br />');
</script>
</body>
</html>

Demo:

Comments


blog comments powered by Disqus

.