jQuery is not working with JSP -


i new jquery , started learning, have written simplest code in jquery not working

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>  <script>$(document).ready(function(){ alert("hello");  $('#_divtxtmyname_combo').keypress(function(event){alert("hi samantha");})}); </script> 

could please tell me doing wrong?

it might treating "#_divtxtmyname_combo' invalid id of element starting "_".

try modifying once , include java script files @ end of body section , check whether it's working or not.


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -