开发者

checkbox image replacement,nothing happend

<?php 
//require 'includes/db.inc.php';
require 'includes/configs.inc.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title><?php $site_name ?></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
        <link rel="stylesheet" type="text/css" 开发者_开发技巧href="/css/style.css">
        <script type="text/javascript" src="/js/jquery.imageTickBox.js"></script>
        <script type="text/javascript">
        jQuery(document).ready(function(){
            jQuery("input:[type=checkbox]").imageTickBox({
            tickedImage: "/images/checked.png",
            unTickedImage: "/images/unchecked.png",
            imageClass: "tickbox"
            });
            });
            </script>
  </head>
    <body>
      <div id="mirror" class="center">
        <!--some code deleted-->
        <input type="checkbox" id="Music" name="hobbies[]" value="Music">
        <!--some code deleted-->
      </div>
  </body>
</html>

any wrong with the code above????name index.php and put it on root dir.

but not work , i see the jquery checkbox plugin guide at

http://blog.leenix.co.uk/2009/10/jquery-plugin-imagetickbox-change-any.html


ALWAYS close your script tags, even if using external resources.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>


You need to close the jquery script tag:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜