Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はjqueryを初めて使用します。別のdivから単一の画像を再表示する方法についてサポートをお願いしたいと思います。タグ付けされたものをすべて非<img>表示にし、説明のために単一の画像を再表示したいからです。
<img>
どの画像を表示する必要があるかを指定する必要があります。
<img src="http://placehold.it/50x50" /> <img src="http://placehold.it/50x50" /> <img src="http://placehold.it/50x50" /> <div id="show"><img src="http://placehold.it/50x50" /></div> $('img').hide(); $('#show img').show();
フィドル: http://jsfiddle.net/c4BxS/