Gets the surah & ayah number from a given juz number
Quran.ayah.fromJuz( juz )
Juz number need to be added here
Returns: object - example: {surah: 1, ayah: 2}
Example: Surah & Ayah number from a juz 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> Quran.init(); // initial setup run - required $('#demo').append('Juz 30 starts with surah & ayah number '+Quran.ayah.fromJuz(30).surah+':'+Quran.ayah.fromJuz(30).ayah); </script> </body> </html>
Demo:
.