Example
<script>
function call_chain()
{
$("#tstdiv").slideUp(300);
$("#tstdiv").slideDown(300);
$("#tstdiv").slideToggle(3200);
}
</script>
<input type="button" value="Do Action" onclick="call_chain();">
<div id="tstdiv" style="width:50px;height:100px;background:red;"></div>
You can write the same as like below
<script>
function call_chain()
{
$("#tstdiv").slideUp(300).slideDown(300).slideToggle(3200);
}
</script>
<input type="button" value="Do Action" onclick="call_chain();">
<div id="tstdiv" style="width:50px;height:100px;background:red;"></div>
Example Program:- (Editor)
Editor is Loading...
Advertisement
0 comments:
Post a Comment