EasyUI Forum
April 24, 2024, 12:28:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: css :not on textbox-text  (Read 3939 times)
juancitop
Newbie
*
Posts: 22


View Profile Email
« on: August 17, 2018, 07:16:12 AM »

My HTML:

<input id="field1" name="field1" class="easyui-textbox" required="true" label="Abcd:" labelPosition="top">
<input id="field2" name="field2" class="easyui-textbox noupper" required="true" label="Wxyz:" labelPosition="top">

My css code:

.textbox-text:not(.noupper){
   text-transform:uppercase;
}

With this the uppercase does not apply to any textbox

If I use:

.textbox-text {
   text-transform:uppercase;
}

Apply to all textboxes.

 Huh Huh

Thanks in advance.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 17, 2018, 05:10:57 PM »

Please use this code instead.
Code:
<style type="text/css">
.textbox:not(.noupper) .textbox-text{
   text-transform:uppercase;
}
</style>
<input id="field1" name="field1" class="easyui-textbox" required="true" label="Abcd:" labelPosition="top">
<input id="field2" name="field2" data-options="cls:'noupper'" class="easyui-textbox" required="true" label="Wxyz:" labelPosition="top">
Logged
juancitop
Newbie
*
Posts: 22


View Profile Email
« Reply #2 on: August 21, 2018, 06:54:31 AM »

Perfect !!!

Thanks 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!