摘要: 自己写的 一个选择城市的插件 自豪感横生html:<input type="text" id="job_post_work_location" autocomplete="off">调用方法 $.bindCitySuggestion('#job_post_work_location');源码如下:(function($){ $.bindCitySuggestion = function(nodeSelector){ var node = $(nodeSelector), popularCity = [ 阅读全文
posted @ 2013-01-24 17:52 mabel_on_line 阅读(6141) 评论(0) 推荐(0) 编辑
摘要: $(document).mouseup(function(e){ var containers = $('#workplace_suggestion_section, #job_post_work_location'); containers.each(function(){ if($(this).has(e.target).length === 0){ suggestionSectionNode.hide(); } });}); 阅读全文
posted @ 2013-01-24 13:43 mabel_on_line 阅读(302) 评论(0) 推荐(0) 编辑