<script>
$(document).ready(function(){
$(".tempOffChangeStatus").first().change(function(){
var rel = $(this).attr("rel");
var offStatus = $(this).val();
$.post("/index.php?component=org§ion=ajax", {
sect: "<?=$_GET['section']?>",
id: rel,
id_zp:<?=$openzakup[0]['id']?>,
offStatus: offStatus,
event: "tempOffStatus"
},
function(){
console.log(rel);
console.log(offStatus);
})
})
})
</script>