<script>
$(document).ready(function() {
$("#pid1").click(function() {
$(this).hide(SpeedEnteredByUser);
});
});
</script>
<body>
<p id = "pid1">This is paragraph</p>
</body>
我想在點擊段落時調用jquery hide函數。但我想通過用戶輸入的速度(即慢/快)。如何實現? 這裏SpeedEnteredByUser是用戶輸入的值(使用某種形式),我想通過這個值來隱藏函數。將參數傳遞給jquery函數
用戶如何選擇速度?這是一個輸入嗎?或選擇?用戶輸入了一個數字嗎?到「慢/快」等字樣? – ManseUK 2012-04-20 09:13:59