You just use the variable name, for example:
$(document).ready(function() {
$("#changeText").click(function() {
var myVariable = "1";
$.get("test.php", { sectid: myVariable },
function(data){
$("#textBox").html(data);
});
});
});
Or, if this value is from something like:
$.get("test.php", { sectid: $(this).attr("something") },
source
share