How do I send the JavaScript variable exampleId into the <https://example.com/widget/widget-updater.php> php file from within the $.ajax() function below?

```
jQuery(document).ready(function($) {   

var element = document.getElementById('widget');
var exampleId = element.getAttribute('attributeExample');

alert(exampleId); /* This prints out correctly into a pop up box */

$.ajax({
type: "GET",
url: "https://example.com/widget/widget-updater.php"
});        

})(); 

```

I know how to get the variable once its in PHP with $\_GET['exampleId'], but I don't know how to send it to the PHP file via the $.ajax() function above. Thanks. 

**Here is the HTML Code:**

```
<script 
src="https://example.com/widget/externalJSfileContainingTheCodeBelow.js" 
async></script><div id="widget" dataVar="1"></div>

```

**Here is the Javascript / jQuery Code**

```
(function () {
var jQuery;
if (window.jQuery === undefined) {
var script_tag = document.createElement('script');
script_tag.setAttribute("type", "text/javascript");
script_tag.setAttribute("src",
"https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");
if (script_tag.readyState) {
script_tag.onreadystatechange = function () {
if (this.readyState == 'complete' || this.readyState == 'loaded') {
scriptLoadHandler();
}
};
} else {
  script_tag.onload = scriptLoadHandler;
}
(document.getElementsByTagName("head")[0] ||
  document.documentElement).appendChild(script_tag);
} else {
jQuery = window.jQuery;
main();
}

function scriptLoadHandler() {
jQuery = window.jQuery.noConflict(true);
main();
}

function main() {
jQuery(document).ready(function ($) {

var element = document.getElementById('widget');
var numberVariable = element.getAttribute('dataVar');
alert(numberVariable);

$.ajax({
type: "GET",
url: "https://example.com/widget/widget-updater.php",
data: { id: numberVariable }
});
var css_link = $("<link>", {
rel: "stylesheet",
type: "text/css",
href: "https://example.com/widget/widget.css"
});
css_link.appendTo('head');
var jsonp_url = "https://example.com/cgi-bin/data.py?callback=?";
$.getJSON(jsonp_url, function (data) {
$('#widget').html(data.html);
});
});
}
})(); 

```