Welcome Guest, Not a member yet? Register   Sign In
jquery refresh?
#1

[eluser]Rambo Frank[/eluser]
Im working on a small project to force myself to learn jquery. Unfortunately I have run into some trouble. I am not sure if I am the one making a mistake or if jquery just isnt capable of handling the request I am making.

My code inserts rows into a table from a var I set up. It inserts the code for the new row correctly but i have a button with in this new row. The issue lies when I press this new button the page just refreshes. This only happens with rows that are inserted, does not occur with rows in the table by default. The actual code can be found here.

The main points of this error I can find is that with in that new row I'm inserting I have a
Code:
<button class='Fremove'>Remove</button>
with in it.

I also have code indicating

Code:
$(".Fremove").click(function(){
    alert("hello");
    return false;
});

No alert happens and the page simply refreshes. Keep in mind that the table is within a form tag, but the "return false" was supposed to take care of that. I have no clue whats going on and have spent much of today working on this. Id appreciate any help. Thanks in advanced.

PS: I thought since the button type is put into the row after that maybe jquery didnt recognize it since it was not there at first. Is there some sort of jquery.refresh for it?


Messages In This Thread
jquery refresh? - by El Forum - 06-18-2009, 05:47 PM
jquery refresh? - by El Forum - 06-18-2009, 06:21 PM
jquery refresh? - by El Forum - 06-18-2009, 07:06 PM
jquery refresh? - by El Forum - 06-18-2009, 09:19 PM
jquery refresh? - by El Forum - 06-19-2009, 10:01 AM
jquery refresh? - by El Forum - 06-19-2009, 03:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB