I later solved the problem without even using Hammer.js. I just changed the .click()
to .change()
and everything is working perfectly.
Here is the working code:
$("#menu").change(function()
{
var menuId = $(this).val();
var request = $.ajax({
url: "news.php",
type: "POST",
data: { id : menuId },
dataType: "html"
});
request.done(function( msg ) {
$("#news").html( msg );
});
});
Thank you all.