使用方法
1,加入jquery库,my_food_plan_pick_foods.js和jquery.uitablefilter.js到您的页面
1 2 3 4 | < link href = "css/flavorzoom.css" rel = "stylesheet" type = "text/css" > < script type = "text/javascript" src = "js/jquery.js" ></ script > < script type = "text/javascript" src = "js/my_food_plan_pick_foods.js" ></ script > < script type = "text/javascript" src = "js/jquery.uitablefilter.js" ></ script > |
2,html
筛选文本框
1 2 3 4 | < form id = "filter-form" > Filter: < input name = "filter" id = "filter" value = "" maxlength = "30" size = "30" type = "text" > </ form > |
对应的表格中数据
1 2 3 4 5 6 7 8 | < tbody > < tr style = "display: table-row;" > </ tr > < tr > < td >< input name = "food_id_1" value = "23558" checked = "checked" id = "" style = "" type = "checkbox" ></ td > < td > Beef, ground, 95% lean meat / 5% fat, patty, cooked, broiled < input name = "food_source_row_1" value = "USDA" type = "hidden" ></ td > </ tr > </ tbody > |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com