weixin_33738578 2012-03-03 16:10 采纳率: 0%
浏览 33

onclick更新html表

I have created a variable in php which when clicked i would like it to populate another table which some data.

I'm guessing i use AJAX and Jquery but what function do i look at?

e.g. if i did something like this. I would like to click $variable1 and only when clicked appear in table1 in .

Does anybody have a link to the function or the few lines of code that can do this? Thanks

<?php
$variable1 = "text";
echo $variable1;
?>

<div id="table1">
<table>
<tr>
<td>variable1 will go here when clicked</td>
  • 写回答

3条回答 默认 最新

  • weixin_33682790 2012-03-03 16:13
    关注

    There is a lot of way to achieve this:

    • writing variable1 in a div a make it appears when clicked
    • AJAX call to fetch value of variable1
    • post the page back to the server and re-write table1 with variable1...
    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作