【问题标题】:Php Ajax Html and Javascript usage in code [closed]代码中的 Php Ajax Html 和 Javascript 使用 [关闭]
【发布时间】:2013-11-07 11:22:40
【问题描述】:
<div class="navigation">
<a class="prev" href="index.php?month=__prev_month__" onclick="$('#calendar').load('index.php?month=__prev_month__&_r=' + Math.random()); return false;"></a>
<!-- <div class="title" >__cal_caption__</div> -->
<a class="next" href="index.php?month=__next_month__" onclick="$('#calendar').load('index.php?month=__next_month__&_r=' + Math.random()); return false;"></a>
</div>

是我给定的代码。需要在以下按钮中应用这些代码。

<div class="cal-head-right">
<button class="prev">prev</button>
<button class="head-day">Today</button>
<button class="next">next</button>
</div>

【问题讨论】:

标签: javascript php html ajax


【解决方案1】:

将按钮包装在超链接中。

<div class="cal-head-right">

 <a class="prev" href="index.php?month=__prev_month__" onclick="$('#calendar').load('index.php?month=__prev_month__&_r=' + Math.random()); return false;">
  <button class="prev">prev</button>
 </a>

 <button class="head-day">Today</button>

 <a class="next" href="index.php?month=__next_month__" onclick="$('#calendar').load('index.php?month=__next_month__&_r=' + Math.random()); return false;">
  <button class="next">next</button>
 </a>

</div>

【讨论】:

    猜你喜欢
    • 2014-01-28
    • 2023-03-05
    • 1970-01-01
    • 1970-01-01
    • 2015-10-19
    • 2011-12-18
    • 1970-01-01
    • 2015-05-17
    • 2012-01-07
    相关资源
    最近更新 更多