带有引导程序的eldarion ajax
Does anyone use eldarion ajax plugin? formerly known as bootstrap ajax...
I have it working where it sends the call to the other page and its successful, I just cant get the data back from that page.
// this is ajax.php
<form method="post" action="ajax-here.php" class="ajax" data-append="#result">
<input type="text" name="text" />
<input type="submit" />
</form>
<div id="result"> </div>
// this is ajax-here.php
$text = $_POST['text'];
echo $text;
All I want is to have the result of the ajax-here.php to be displayed in the div with the ID result on the page where the ajax is happening. Any suggestions would be great. I like using this plugin because it works nicely, just don't know how to get the data to append to the div that I want. Thanks
weixin_33739523
2013/11/01 18:24- php
- ajax
- jquery
- 点赞
- 收藏
- 回答
3个回复
