Welcome Guest, Not a member yet? Register   Sign In
CI and Ajax or JQuery
#1

[eluser]Unknown[/eluser]
Hi, I'm having a little trouble about implementing ajax. I'm really new on this, but as much as I review the code I don't found were's the problem.
Here's the fact:

I have a simple controller that calls a view. This view shows some information. Well, I really got angry when I tried to use a simple button showing an alert. The alert down't show. However, other alerts seems to work. I can not see what am I doing wrong. Here's the code:

[removed][removed]
[removed]
$(document).ready(function() { //this alert worksa fine

alert ('Hello World');

});

$('#message').click(function () { // this alert doesn't appear!
alert ('Hi!');
});
[removed]

....


<input type="button" value="Hi" id="message">

If somebody can help me.... I'll be greatfull

TNX
Sorry about my english


Messages In This Thread
CI and Ajax or JQuery - by El Forum - 02-13-2012, 07:05 PM
CI and Ajax or JQuery - by El Forum - 02-13-2012, 07:14 PM
CI and Ajax or JQuery - by El Forum - 02-13-2012, 07:20 PM
CI and Ajax or JQuery - by El Forum - 02-13-2012, 07:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB