<script>
$(document).ready(function () {
$("#pid1").click(function () {
$(this).hide(SpeedEnteredByUser);
});
});
</script>
<body>
<p id = "pid1">This is paragraph</p>
</body>
I want to call jquery hide function when paragraph is clicked. But I want to pass the speed(i.e. slow/fast) which is entered by the user. How it can be achieved ? Here SpeedEnteredByUser is the value entered by the user(using some form) and I want to pass this value to hide function.