<script type="text/javascript"> // <![CDATA[ jQuery(document).ready(function(e) { checkoptions(); jQuery("select.super-attribute-select").change(function(){ checkoptions(); }); }); function checkoptions(){ jQuery("select.super-attribute-select option").each(function(){ var optiontext = jQuery(this).text(); var addsignpos = optiontext.indexOf(' +'); var subtractsignpos = optiontext.indexOf(' -'); if(addsignpos>0){ var result = optiontext.substring(0,addsignpos); jQuery(this).html(result); } if(subtractsignpos>0){ var result = optiontext.substring(0,subtractsignpos); jQuery(this).html(result); } }); } // ]]> </script>
追加以上JS到文件:app/design/frontend/default/sanorita/template/catalog/product/view/type/options/configurable.phtml
相关推荐
Control Panel - Add/Remove Programs
一款很好用的卸载程序,很多顽固程序手动无法卸载的均可使用此程序卸载.
it works………….. [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 想实现一个很简单的功能:当选中... [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 所以,只能通过select元素的remove和add方法,当选中
ORACLE 19C RAC remove add node
Norton Remove and Reinstall Tool 可以从您的计算机中删除大多数 Symantec 软件应用程序,包括 Norton Antivirus,Ghost 或 Internet Security。Norton Remove and Reinstall(以前称为 Norton 删除工具)是一个...
超強 軟體安裝 移除程式,它可以讓你 重覆 註冊 試用軟件 無 數次 !!
You learn how to copy these validation rules to other cells, how to remove validation rules from cells and how to use the Data Form dialog box to enter and locate data in a range. Next you learn how...
this.options.add(NewOption, idx); NewOption.innerText = innerText; NewOption.value = value; if (!this.bOriginalSelect) this.createOptionTr(idx); this.syncOptions(); this.adjustOptionsDiv(); ...
Option to replace Add/Remove program (Uninstall Tool icon in Control Panel) Saving (exporting to HTML) detailed reports about currently installed applications Running "Windows Components" and "Add/...
save and restore columns order and display width in ini-files and system registry; display icons for BLOB, memo, OLE and picture fields; select multiple records; convert columns headings to buttons. ...
这样写 代码如下: <select id=”search”> <option>baidu</option> <option>sogou</option> <... 清空: 代码如下: $(“#search”).find(“option”).remove(); 或者 $(“#search”).empty();
0001-remove-Guide-RemoteCore-and-add-RemoteAssistance-Lin.patch ota 升级删除apk
var len = $("select[name=ISHIPTYPE] option").length if(shipping.value != "CA"){ $("select[name=ISHIPTYPE] option").each(function(){ if($(this).val() == 111){ $(this).remove(); } }); }else{ $("<option ...
javascript操作Select标记中options集合 先来看看options集合的这几个方法: options.add(option)方法向集合里添加一项option对象; options.remove(index)方法移除options集合中的指定项; options(index)或options...
* Remove "Clean DB" and "Rename slugs" in manage terms * Remove "include cat" on "Related Posts" settings * Optimize function "Related posts" * Reorganize admin for have a tab features with all ...
With Spring DM, you can easily create highly modular applications and you can dynamically add, remove, and update your modules. Spring Dynamic Modules in Action is a comprehensive tutorial that ...
图像噪声周期跳频噪声去除算法,利用一个像素点离它周围点的均值超过一定数值,该算法就会去除这个像素点。对CCD相机的hot pixels或dead pixels很有用
The lists lines option can be a handy tool when searching because it presents all occurrences of the find string in a floating dialog box. You can use the dialog to navigate to each instance by double...
Fragment后退栈和add,remove,replace的基本使用.
With this utility you can safely stop and remove USB Flash Drives much faster then using "Safely remove hardware"" icon in the system tray. FEATURES: *Unlimited number of processes to launch You may...