Forum Moderators: open

Message Too Old, No Replies

jquery sytax: append(.load('one.php')

         

php_member

3:51 pm on Jun 2, 2009 (gmt 0)

10+ Year Member



I would like to append for each click a html content from one.php, but the following sytax is incorrect:
$('#include').append(.load('one.php'));

The reason why I use php is I would like to increase counter for each load (via database).

Please tell me what would be the correct syntax. I tried also only
$('#include').load('one.php'));

but it add content from one.php only one time even if the counter is increased each time it load the file. .append it add extra content each time, but I don't know hot to append and load in the same time.

Thank you

php_member

9:52 pm on Jun 2, 2009 (gmt 0)

10+ Year Member



here is my code. So the problem is I want to display form from test.php each time user click on More, now it show only 1 time, even if I make more clicks.

$(function() {

$('#clickme').click(function() {
$('#include').load('test.html');