codice:
$(document).ready(function(){
$("#on_off1").on("click", function() {
var checkedLength = $(this + ':checked').length;
$.ajax({
type: "GET",
data: "?LED=106",
dataType: "text/html",
url: "http://192.168.0.107",
success: function( r ){
alert("Il led 1 è stato acceso ;)");
},
error: function(){
$(".post_box_l1").html("Impossibile accendere il led 1");
}
});
});
})
Se non dovesse funzionare metti la pagina online e posta il link, è molto improbabile che qualcuno si scarichi lo zip e ricrei il problema in locale