[問題] 關於xsl中在傳值
<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