今天遇到一个很是纠结的问题,需求又改了!原生的select给option加样式,结果发现select选中仍是默认样式,如下图:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAAAtCAIAAADKoPJQAAAEGklEQVR4nO2csW6rMBSG+2a8DWuWLBm69A06ZOmSlTfIyNTlKiKgRoKBDEREHSJFdqpKVj34DlV7c8HHHEhIWvJ/QyXsg31Oc/4cQ8B3BoCb5+7aDgBwfSADACADACADAAxkAICBDAAwkAEAhikDpZSUsiiKJEkWAPxskiQpikJKqZQ6jwy01nmep2lalqWUUmvNHBeAa6G1llKWZZmmaZ7nnKR1yUBKGUXRfr8/n4cAXJT9fh9FkZTSbUbKQAixWq34ZQWAn4lSarVavb29OWzsMtBaR1GEJRAYBkopdz7bZZDnOdZCYEjsdrs8z6leiwyUUmma9ukSAFcgTVNqkW+RgRCiLMueXQLg0pRlKYSwdllk8HnPlT+67/utbCh7zjjdjE+BOZH/heOsbj5fLNLB8/nbl7XLIoMkSVpdHPchA79GN8vKWW46REed65YB3+dGBwAfrXWSJNYuiwwWi4V7uA75xJTB9+nuvHe79x/vy+n9LCOmc7vBj5EjA35E7KnXwcP0zzsVObBA5XZHGXAOqU+60YAzJk8MHy9P48dne6ZwRmBKjp/0p8ReP/xYTkdUeMBGXzJwZ4D7U3fktPvb13qKhU0wmQQbRhQcA4c9RwaVQNyxsw83wWRkL3a3h+d5d0d4nle3OacMjnEnE1MGppYo/OLgWDZks9E4WFPjXFIG1OyNZo2Hr/N7f7qkHLspwjA8lkEYhnWbXmTAT1lOBjDXCdbiYBtwHYz9pxfuFPXRGmVAidCqSerfUjGjLEk3stmoGuXt8l0QrKXA9CED9zd9paWDDBzJxJLBx/Ojfz9/5U5B+ezI7Maouxm0k8Fu/uA/zHcGmKOCYC0F5uwysH6BObKznn/10Y6TrK4xt9gsja/z+yYZUKFZDSh7a5cjwMbBrcKjRbic1sK8ZTzPo0qB6eMSmZ8lpmX+mVoucuaqNjKqgcNh5qRUF2dwpt5QDVo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ySGRGERcvxUzqbsXG2KRhudK+b9/TzPh2dsxMDD0ktGH1ya3JFuUpxFhxHwBn1n5h/ffWCUW5UNCbckbOEBgnm8pieHEk3AmokFYxmOU4NBCOknUYw9wPq7dMv9RDcnAUNcEPbLUEOQYL59S/1Xpq3CRjSCcb5R1HIY7lE2Oloq9FbHMxM+uwXjBO5JshduBZlwbGd/XI9d9wmYEi66dfnEwVmKllZqxkrosLIrFEwzi5KZaLCrI8UguF+zc4W56UgwegHMhtn1O/ROe+zLsGoJsM4CJVZGerymJ4yXzQBixbsYSKySvbhfnpHsRu38ymZXjD2gjNiGgb4lCyE1IKR08JodB5zHZ17JDmC3Tg7M//6hmaqdyOhVBF3O00rzIz29mgm9QZ1UgvG66AxZ8Agybl3w0R0T0fP/nzTHzoZ5Q02uWTcUVAFW4Jv+gNJ/T1M+xGeJdt5ZrT/Cs+SBQHBABAABANAAJsSzF9/EwzWPWuRYIi0jUER1uIMgy2t7YIx2g30noaz3hMGq1sCwRip6cTw9x4bke2rckcYTGkpKwyX00JCC3mvPNWMAoNxlkwwxJeXJUIv+XjVIgfkhoDBBEssGGdL/aCe65wqDGfyLcmcQxgk/8XA2mlpBEMPi4Ocr+QSgCasPKLcHQZzWjLBcMJwOhu9ZGlxznUf51jcBGCwlaXf9IfKwHnJ7k7WQk6IIzTCYHVLuSQThMG1y0nvvKofC4KBeW0HPiUjV8XwZjx3zLVwjTBY3dr4KZndTiG1iPvpjQDBwLy2e0syogcHhieR41g5FgQD81qaR2Pqxxx2L2+joBD5KjcoDGZYix6+hMHabxsRzJuTb8lvDAbbhB2eXKxfMM9ff3lz8u39p58wWJfszcm356+/rF8wAIA6EAwAAUAwAAQAwQAQAAQDQAAQDAABQDAABADBABAABANAABAMAAFAMAAE8B+r2N7FwnhERwAAAABJRU5ErkJggg==" alt="" />

左思右想之后,感觉模拟一个实在太麻烦了(原来页面结构得变动、样式也得重写甚至要多写好多js和css代码,总之感觉因为这么个小需求去做大改动不(ai)值(tou)得(lan))!

...经过一番思想上的斗争与逻辑的整理,效果实现了:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQUAAAAzCAIAAAARoIrCAAAEQklEQVR4nO2cPY7bPBCGdYscI2VKlVtumWOk/I7gco+wZcocQaWbhVYCDEiFAEGAjBQGDNJbmACL+YrNmo7En6Fs2Rv7fWAYkDQkh/a8HMqimRAA4IPk2g4A8ImAHgAwQA8AGKAHAAzQAwAG6AEAA/QAgAF6AMAAPQBgYOlBKSWl7LquLMsXAD43ZVl2XSelVEqdWQ9a66Zpqqrq+15KqbWObQCAC6O1llL2fV9VVdM0UUHr04OUMs/z7XZ7socAXIftdpvnuZSSae/UgxBitVpNyDgAfCqUUqvV6u3tjWNs14PWOs9zzI7AbaCUYsazXQ9N02CaBG6JzWbTNE3QzKIHpVRVVTO4BMA1qaoqOP+36EEI0ff9PC4BcDX6vhdC+G0senj/7TainYTxEOPYxmXPqWea8SkwG0qSPy9PqWk+X6ynt877MzS/jeWzLssy7k56Dj0cwmsQZ7GWg1L+V9ArT52cUsdqYfocdACw0VqXZem3sXzWLy8vgYonBBZTD4fifgHw2S/p8cnZnN8Nfh85euD3iNt0S9//o729E8BKMLan6oFz6PrKgwacOlmq2NMipcwRMrFpLcosyn9m38eHywX9yFgeAiK6hB78oeD/+j3BHcw5nEhtn+nh2Xk1WEMwCXgueYb8gUFUJhketvTwjV6dft0VaZomR6RpOraZRw9/VcCb+3JEwpwvDWrwzCievtJz66znknpwtR40Cx7+fKTF0unYPZFl2bEesiwb28ysB37sckKBOYWwpgtLhS2lX4ZjJ18PzJsEzsvTI2sCjNLD6xN9Wfg6ck8cUoQ1OdC8euBMhekEPXiiiqOHfUbJI/1mN+Hy2RPirqbHZ6IMovTw+xcl34fdvFcOKcKaHGhGPViHNE+Y+gf4cbSNxRYc2oeB8jOsByv+Ed1fxHWGmS7GxmE1Li3dvGPSNHUlB5r3fpofLhQZiDQKSk5bE/KDnzPqwVqEKTzkhxiyLHMlB5pFD65v0XrG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RgD6Ncf2tUpFySGRGERcvxUzqbsXG2KRhudK+b9/TzPh2dsxMDD0ktGH1ya3JFuUpxFhxHwBn1n5h/ffWCUW5UNCbckbOEBgnm8pieHEk3AmokFYxmOU4NBCOknUYw9wPq7dMv9RDcnAUNcEPbLUEOQYL59S/1Xpq3CRjSCcb5R1HIY7lE2Oloq9FbHMxM+uwXjBO5JshduBZlwbGd/XI9d9wmYEi66dfnEwVmKllZqxkrosLIrFEwzi5KZaLCrI8UguF+zc4W56UgwegHMhtn1O/ROe+zLsGoJsM4CJVZGerymJ4yXzQBixbsYSKySvbhfnpHsRu38ymZXjD2gjNiGgb4lCyE1IKR08JodB5zHZ17JDmC3Tg7M//6hmaqdyOhVBF3O00rzIz29mgm9QZ1UgvG66AxZ8Agybl3w0R0T0fP/nzTHzoZ5Q02uWTcUVAFW4Jv+gNJ/T1M+xGeJdt5ZrT/Cs+SBQHBABAABANAAJsSzF9/EwzWPWuRYIi0jUER1uIMgy2t7YIx2g30noaz3hMGq1sCwRip6cTw9x4bke2rckcYTGkpKwyX00JCC3mvPNWMAoNxlkwwxJeXJUIv+XjVIgfkhoDBBEssGGdL/aCe65wqDGfyLcmcQxgk/8XA2mlpBEMPi4Ocr+QSgCasPKLcHQZzWjLBcMJwOhu9ZGlxznUf51jcBGCwlaXf9IfKwHnJ7k7WQk6IIzTCYHVLuSQThMG1y0nvvKofC4KBeW0HPiUjV8XwZjx3zLVwjTBY3dr4KZndTiG1iPvpjQDBwLy2e0syogcHhieR41g5FgQD81qaR2Pqxxx2L2+joBD5KjcoDGZYix6+hMHabxsRzJuTb8lvDAbbhB2eXKxfMM9ff3lz8u39p58wWJfszcm356+/rF8wAIA6EAwAAUAwAAQAwQAQAAQDQAAQDAABQDAABADBABAABANAABAMAAFAMAAE8B+r2N7FwnhERwAAAABJRU5ErkJggg==" alt="" />

直接上代码:

html:

<select name="" id="bankSelect" onChange="changSel()">
<option>中国银行</option>
<option color="yelllow" style="color:#F00">农业银行(正在升级中)</option>
<option>建设银行</option>
</select

js:

<script type="text/javascript">
function changSel(){
$('#bankSelect option[color!="yelllow"]').css('color','#000'); //option没有自定义属性color="yelllow"默认为黑色
if($("#bankSelect option:selected").text().indexOf("(")>=0 && $("#bankSelect option:selected").text().indexOf(")")>=0) //如果选中option中包含"("和")"给select加红色
{
$('#bankSelect').css('color','red');
}
else{
$('#bankSelect').css('color','#000'); //否则为默认的黑色
}
}
</script>

逻辑就是这样的了 最好是直接判断是否有color这个自定义属性

分享一个option样式传递给select当前选中样式的更多相关文章

  1. 分享一个图片上传插件(TP5.0)

    效果预览图: 该插件主要功能是:可预览裁剪图片和保存原图片,执行裁剪图片后会删除 裁剪的原图片目录,以便减少空间.一.下载附件 地址:https://pan.baidu.com/s/1bpxZhM3 ...

  2. select标签非空验证,第一个option value=""即可

    select标签非空验证,第一个option value=""即可,否则不能验证

  3. Jmeter----A接口response中body的某一个参数传递给B接口request的body中使用(参数的传递)

    示例:将接口"获取待办列表"response中body的id值传递给接口"删除待办"request的body中使用: 操作步骤如下: 第一步:给"获取 ...

  4. vue select二级城市联动及第二级默认选中第一个option值

    当二级联动比如选择国家的时候,希望选中一个国家的时候后面城市默认选中第一个城市,则给国家的select加一个@change事件就可以了 <div class="inputLine&qu ...

  5. add() 方法用于向 <select> 添加一个 <option> 元素。

    //add() 方法用于向 <select> 添加一个 <option> 元素. //new Option() 创建一个option标签 school.add(new Opti ...

  6. jquery获取select下拉框的前一个,后一个,第一个,最后一个option对象

    $("select option:selected").next(); <select> <option value="1" selected ...

  7. C# PDF Page操作——设置页面切换按钮 C# 添加、读取Word脚注尾注 C#为什么不能像C/C++一样的支持函数只读传参 web 给大家分享一个好玩的东西,也许你那块就用的到

    C# PDF Page操作——设置页面切换按钮   概述 在以下示例中,将介绍在PDF文档页面设置页面切换按钮的方法.示例中将页面切换按钮的添加分为了两种情况,一种是设置按钮跳转到首页.下页.上页或者 ...

  8. WPF-19:分享一个样式(左右滑动选中的checbox)

    首先看下效果. 选中: 不选中 样式: <Style x:Key="CheckStyle" TargetType="{x:Type CheckBox}"& ...

  9. 分享一个SQLSERVER脚本(计算数据库中各个表的数据量和每行记录所占用空间)

    分享一个SQLSERVER脚本(计算数据库中各个表的数据量和每行记录所占用空间) 很多时候我们都需要计算数据库中各个表的数据量和每行记录所占用空间 这里共享一个脚本 CREATE TABLE #tab ...

随机推荐

  1. Android 之 资源文件的介绍及使用

    Android 之 资源文件的介绍及使用 1.资源的简单介绍:  在res文件夹中定义:字符串.颜色.数组.菜单.图片.视频等:在应用程序中使用这些资源.  2.使用资源的长处:降低代码量,同一时候为 ...

  2. openwrt上网配置的一些理解(四)

    这次要解决的问题是3g上网和wan口上往可以随意切换,当然能够叠加也是好事,不过这不是我关心的.下面还是修改3个文件network,firewall,multiwan.首先在network中加入界面配 ...

  3. 图形绘制 Canvas Paint Path 详解

    图形绘制简介        Android中使用图形处理引擎,2D部分是android SDK内部自己提供,3D部分是用Open GL ES 1.0.大部分2D使用的api都在android.grap ...

  4. 从客户端检测到危险的Request.Form值解决方案

    1.修改aspx页面中的代码,设置ValidateRequest="false" <%@ Page Language="C#" AutoEventWire ...

  5. 通过Url传多个参数方法

    MVC3通过URL传值,一般情况下都会遇到[从客户端(&)中检测到有潜在危险的 Request.Path 值]的问题 这个问题的解决方法,我的其他博文已经有了说明,这里给出连接[从客户端(&a ...

  6. (转)asp.net(C#)手记之Repeater与两级菜单

    先来张图片说明下我们要实现的菜单: 这个菜单只实现了2级哈. 我采用的方法是嵌套2个Repeater. 先看下数据库中的表结构: 数据: 上代码: aspx: <asp:Repeater ID= ...

  7. jquery获取checkbox被选中的值

    只用一个循环,就可以找出被选中的checkbox的值 var s; $("[name = b]:checkbox").each(function () {              ...

  8. SQL从入门到基础–08 Union、Union all及案例

    一.联合结果集 1. 简单的结果集联合: Select FNumber,FName,FAge from T_Employee union select FidCardNumber,FName,FAge ...

  9. defer和async

    1.decument.wirte不能使用 2.<script src="text.js" type="text/javascript" defer=&qu ...

  10. C++安装JSONCPP

    VS2013里新建一个空的控制台程序(用作测试jsoncpp是否可用),名为: TestJSON 解压下载好的文件:jsoncpp-src-0.5.0.tar.gz 利用VS2008打开jsoncpp ...