Home >Web Front-end >HTML Tutorial >Beautification checkbox_html/css_WEB-ITnose in HTML page
Many artists often use pictures instead of checkboxes to beautify the page when designing pages.
The html is as follows:
<div class="checklayout"> <div class="checkbox01"> <img src="../images/checkbox01_noclick.png" name="hobby" id="01"> </div><div class="checkword01">苹果</div>
jquery:
var hobby; var obj = $("img[name='hobby']"); if ("../images/checkbox01_click.png" == obj.attr("src");) { hobby = obj.attr("id"); }
My personal blog: http://blog.caicongyang.com;
My personal website: http://www.caicongyang.com;
My CSDN blog address: