View Single Post
Old 01-16-2013, 11:12 PM   PM User | #6
LJackson
Senior Coder

 
Join Date: Jun 2008
Location: Cornwall
Posts: 1,973
Thanks: 289
Thanked 12 Times in 12 Posts
LJackson is on a distinguished road
can you see anything wrong with this code
Code:
<a class="deleteRow" onclick="
$('.deleteRow').click
(
    function()
    {
        $.get('/delete.php', function(data){alert('Server Returned: ' + data);});
        return false;
    )
);" 
href="#">Delete</a>
its throwing up a syntax error with the last ) any ideas where the code it incorrect?

EDIT
====

Ok noticed that one of the brackets were incorrect ) instead of }

now its throwing up another syntax error
TypeError: $(...) is null???

any ideas?

thanks
__________________
Kernow Connect: Online Shopping, Price Comparison, Maximum Savings On Top UK Stores
Follow Us On: Twitter | Facebook

Last edited by LJackson; 01-16-2013 at 11:19 PM..
LJackson is offline   Reply With Quote