Quran.ayah.next( surah, ayah )

Gets the next surah & ayah number from given surah & ayah number

Quran.ayah.next( surah, ayah )

Surah number need to be added here

Ayah number need to be added here

Returns: object - example: {surah: 1, ayah: 2}


Example: next 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('Next Surah & Ayah for  1:7 is '+Quran.ayah.next(1, 7).surah+':'+Quran.ayah.next(1, 7).ayah);



blog comments powered by Disqus