[問題] 關於xsl中在傳值

看板Web_Design作者 (ROLL)時間17年前 (2009/03/04 01:00), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
<xsl:if test="authority"> <input onclick="authorize_user('<xsl:value-of select="uid">')" name="authority" id="authority" type="checkbox" value="0" checked="checked" /> </xsl:if> <xsl:if test="not(authority)"> <input name="authority" id="authority" type="checkbox" value="0" /> </xsl:if> 以上這個code要是把onclick拿掉,就只是檢查有沒有authority這個note 但是我想要她能夠點選這個checkbox就會叫javascript中的一個函式去做些事情 並且傳uid過去,但是我要怎樣才能傳過去啊?? 先謝謝大家了!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.174.40.229

03/04 13:47, , 1F
我研究出來了~^^
03/04 13:47, 1F
文章代碼(AID): #19hM8lq3 (Web_Design)