EasyUI Forum
September 13, 2025, 09:11:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to change the combobox border-color?  (Read 11511 times)
r2ferna
Newbie
*
Posts: 21


View Profile
« on: March 10, 2015, 06:22:06 PM »

This line works fine!
Code:
$('#filtroAv').css("border-color", "red");
This line does'nt works!
Code:
$('#inpField').css("border-color", "red");

The second line is for a combobox.

Code:
        <input id="inpField" class="easyui-combobox" style="width:100px;"
            data-options="valueField:'clave',textField:'etiqueta',panelHeight:100,
                data:[
                    {clave:'r-apellido',etiqueta:'Apellidos(s)',selected:true},
                    {clave:'r-nombre',etiqueta:'Nombre(s)'},
                    {clave:'r-confirmacion',etiqueta:'Confirmación'},
                    {clave:'r-nreser',etiqueta:'Folio',tipoDato:'integer',tipoBusqueda:'unica',},
                ], value:'r-apellido',onSelect:cbOnSelect,validType:'inList',selectOnNavigation:true,"
        ></input>
       <a href="javascript:void(0)" id="filtroAv" class="easyui-linkbutton"
            iconCls="icon-search" onclick="openDialogFiltro()">Avanzada</a>

MTIA.
Fernando.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 10, 2015, 07:51:00 PM »

Call the function below to change the border color for a special field.
Code:
function changeFieldBorderColor(field, color){
var t = $(field);
var el = t.data('textbox') ? t.next() : $(t);
el.css('border-color', color);
}

Usage example:
Code:
changeFieldBorderColor('#filtroAv', 'red');
changeFieldBorderColor('#inpField', 'red');
Logged
r2ferna
Newbie
*
Posts: 21


View Profile
« Reply #2 on: March 11, 2015, 06:51:24 PM »

Thanks a lot stworthy!!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!