|
Project Information
Links
|
jQselectable日本語ドキュメントを更新しました:selectボックスをシンプルなプルダウンに拡張するjQselectable | 5509(+1) Selectbox gets more usability with jQselectable. DemoDownloadUsageHTMLPages that using jQselectable has been loading the 'jQuery'. <script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.3.2");</script>Loading both css and js files. <style type="text/css" href="skin/selectable/style.css" /> <script type="text/javascript" src="js/jQselectable.js"></script> JSBasic$(object).jQselectable(); And you also use the old method that is 'selectable'. $(object).selectable(); Using with Options$(object).jQselectable({
style: 'simple',
set: 'fadeIn',
out: 'fadeOut',
top: -10
});Options
styleYou may change styles either 'selectable' or 'simple' you like. set (out)Set selectable(s) showing(hiding) method.
setDuration (outDuration)Set selectable(s) duration of showing(hiding) animation.
opacitySet opacity of selectable(s)'s dropdown list. top (left)This property is used by adjusting target selectable(s) position top(left). callbackYou may also use callback function. ex) function(){
alert($(this).val());
}APIIf you need to rebuild the selectable, you would like to use api. var instance = $('#sample').jQselectable();
~~~
instance.rebuild();Table
With using AjaxZip2This is sample with using AjaxZip2 by rebuild. Source codevar pref = $("#pref").jQselectable({
set: "fadeIn",
setDuration: "fast",
opacity: .9
});
$("#zip").keyup(function(){
// AjaxZip2
AjaxZip2.zip2addr(this,"pref","addr");
}).blur(function(){
// rebuilds target jQselectable element
pref.rebuild();
});Authornori @ 5509 Special Thanksrewish @ rewish.org |