If any of you guys have experience with this, I'm having quite a predicament at the moment. I have a file that uses PHP to dynamically determine how many rows of a certain template to display (determined by MySQL query), and I have jQuery that I want to execute on each template/row. I want to make all of the jQuery relative (no need for IDs), so that I can implement it in another area. So far it has been going good but now I have come to a problem:
The problem is, the "this" on line 3 is not being identified. Apparently the "this" will not pass through the post function. How can I solve this, keeping the code relative?Code:$('.click').click( function() { $.post("page.php", {data: 'data'}, function(data) { $(this).slideUp(); }); });
This is the page I am working with: http://mylifeisnerdy.co.cc/personal2.php
The part of the code that I'm trying to get to work is when you click the submit button I want the .expandComments div to show once data is returned.
Feel free to browse the site if you like ^_^.
Bookmarks