Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call Change() function
Message
From
01/01/2015 18:31:34
 
General information
Forum:
Javascript
Category:
JQuery
Miscellaneous
Thread ID:
01612951
Message ID:
01612952
Views:
46
My guess is that txtMyTextbox should be #txtMyTextbox.

>I am trying to incorporate a jQuery Change function in an asp.net page that would make certain control invisible when user starts typing (making changes) in a text box. My initial test, just to call an alert() does not seem to work. Here is my code:
>
>
><script type="text/javascript">
>       $(document).ready(function () {
>
>           $("txtMyTextbox").change(function () {
>
>               alert("Change Function Called");
>
>           });
>
>   })
></script>
>
>
>What is wrong with my code? TIA
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform