Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function(){
- $('#country').typeahead({
- source: function(query, result){
- $.ajax({
- url:"fetch_sms_alert_source.php",
- method:"POST",
- data:{query:query},
- dataType:"json",
- success:function(data){
- result($.map(data, function(item){
- return item;
- }));
- }
- });
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement