Ich habe ein Problem mit der Klickfunktion in der mobilen Webseite. Hier ist mein HTML-CodejQuery Mobile Klickereignis funktioniert nicht
<div data-role=content>
<input type="text" id="text">
<div id="ss"></div>
</div>
<script type="javascript">
$(document).ready(function() {
$("#text").keyup(function(){
$('#ss').append('<div style="background:yellow;" >Text<br/><a class="te"> alert </a></div>');
});
$(".te").click(function(){
alert("It is working");
});
});
</script>
Bitte helfen Sie mir bei der Lösung dieses Problems.
Sind Sie mit jQuery Mobile? Wenn ja, füge bitte [tag: jquery-mobile] zu deiner Frage hinzu. – Mooseman
@Barlas, Siehe diese Antwort http://stackoverflow.com/questions/4755505/how-to-recover-touch-events-using-jquery-in-safari-for-ipad-is-it-possible – maximkou
Vielen Dank . Ich habe mein Problem gelöst. Mein korrekter Code ist: – Guwanch