JAVASCRIPT   30

AjaxSelect

Guest on 29th April 2022 01:24:45 AM

  1. function AjaxSelect(elementId) {
  2.     this.id = elementId;
  3.     this.select = document.getElementById(id);
  4.    
  5.     this.populate = function() {
  6.         call(id, 'ajaxFetchData', {}, function(e) {
  7.             console.log(e);
  8.         });
  9.     };    
  10. }

Raw Paste


Login or Register to edit or fork this paste. It's free.