Prefix Number Phone Indonesian Country With Javascript



Prefix Number Phone Indonesian Country With Javascript

function prefix_phone_number(param)
	{

	    if(jQuery.inArray(param,["0817","0818","0819","0859","0877","0878","0879"]) >= 0)
	    {

	        return "XL";

	    } else if(jQuery.inArray(param,["0811","0812","0813","0821","0822","0823","0851","0852","0853"]) >= 0)
	    {

	        return "TELKOMSEL";

	    } else if(jQuery.inArray(param,["0831","0832","0838"]) >= 0)
	    {

	        return "AXIS"

	    } else if(jQuery.inArray(param,["0814","0815","0816","0855","0856","0857","0858"]) >= 0)
	    {

	        return "INDOSAT";

	    } else if(jQuery.inArray(param,["0895", "0896", "0897", "0898", "0899"]) >= 0)
	    {

	        return "TRI";

	    } else if(jQuery.inArray(param,["0881","0882","0883","0884","0885","0886","0887","0888","0889"]) >= 0)
	    {

	        return "SMARTFREEN";

	    } else if(jQuery.inArray(param,["9991","9992","9988","9993","9994","9995"]) >= 0)
	    {

	        return "BOLT";   

	    } else
	    {
	        return false;
	    }
	}
	

Subscribe to receive free email updates: