<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> <div id="test"><?php include 'test.php';?></div> <button onclick="$('#test').load('test.php?a=2');">refresh</button>
<? $num=$_GET['a']; $sum=$num+2; echo $sum ?>
<script type="text/javascript"> $(document).ready(function(){ $("#btn1").click(function(){ var bodyContent = $.ajax({ url: "jQueryAjax2.php", global: false, type: "POST", data: "name=John&location=Boston", dataType: "html", async:false, success: function(msg){ alert(msg); } } ).responseText; $("p").text(bodyContent); }); }); </script>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง