Quran.surah.name( surah [, nameType] )

Gets the name of the surah

Quran.surah.name( surah [, nameType] )

Surah number need to be added here

nameType There are 3 types of names arabic_name, english_name or english_meaning. default value is arabic_name


Example: Get surah names and there meaning

<!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">

Quran.init(); // initial start run - required
$('#demo').append('Surah 1 name is '+Quran.surah.name(1, 'arabic_name')+' '+Quran.surah.name(1, 'english_name')+' - '+Quran.surah.name(1, 'english_meaning'))
.append('<br />');
$('#demo').append('Surah 2 name is '+Quran.surah.name(2, 'arabic_name')+' '+Quran.surah.name(2, 'english_name')+' - '+Quran.surah.name(2, 'english_meaning'))
.append('<br />');
$('#demo').append('Surah 114 name is '+Quran.surah.name(114, 'arabic_name')+' '+Quran.surah.name(114, 'english_name')+' - '+Quran.surah.name(114, 'english_meaning'))
.append('<br />');



blog comments powered by Disqus