I use this simple Jquery code to get element from a div and then to change it thanks to a php script :
$(document).ready(function(){
$("#description").keyup(function(){
var recherche = $(this).val();
$.ajax({
type : "GET",
url : "result.php",
data : {motclef: recherche},
success: function(server_response){
$("#resultat").html(server_response).show();
}
});
});
});
Problem is some changes can happend without pressing any key (copy/past ...). I have tried with .change() but it is triggered only when the focus of the element is lost.