<!DOCTYPE html> <html lang="ja-JP"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,user-scalable=yes,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.5"> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script> $(function(){ $("input:eq(0)").click(function(){ $("p:not(:animated)").show("slow"); }); $("input:eq(1)").click(function(){ $("p:not(:animated)").hide("slow"); }); }); </script> <style> p{ width:200px; height:200px; background-color:#FF0000; display:none; } </style> </head> <body> <input type="button" value="表示"> <input type="button" value="非表示"> <p></p> </body> </html>