Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery to vanilla javascript

var request = new XMLHttpRequest();
request.open('POST', '/my/url', true);
request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
request.send(data);
Source by youmightnotneedjquery.com #
 
PREVIOUS NEXT
Tagged: #jquery #vanilla #javascript
ADD COMMENT
Topic
Name
8+9 =