Click here to Skip to main content
15,886,032 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Bootstrap CSS: How to bring X icon for textbox Pin
Richard Deeming30-Jan-18 0:50
mveRichard Deeming30-Jan-18 0:50 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
A_Griffin30-Jan-18 1:09
A_Griffin30-Jan-18 1:09 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Richard Deeming30-Jan-18 1:16
mveRichard Deeming30-Jan-18 1:16 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Richard Deeming30-Jan-18 7:05
mveRichard Deeming30-Jan-18 7:05 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
A_Griffin30-Jan-18 7:23
A_Griffin30-Jan-18 7:23 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Mou_kol30-Jan-18 21:31
Mou_kol30-Jan-18 21:31 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Mou_kol30-Jan-18 21:33
Mou_kol30-Jan-18 21:33 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Richard Deeming31-Jan-18 7:53
mveRichard Deeming31-Jan-18 7:53 
The simplest option is probably the :placeholder-shown selector:
Updated demo - JSFiddle[^]

  • Add the has-clear class to the parent element;
  • Add the placeholder attribute to the input element;
  • Add the following CSS rule:
    CSS
    .has-clear input:placeholder-shown ~ .form-control-clear {
      display: none;
    }


NB: This won't work in IE11 or Edge, because they don't support the :placeholder-shown selector. The X will always be visible in those browsers.
Can I use... - :placeholder-shown CSS pseudo-class[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Mou_kol31-Jan-18 20:42
Mou_kol31-Jan-18 20:42 
Questionhide a column in gridview Pin
Member 1364937528-Jan-18 22:43
Member 1364937528-Jan-18 22:43 
AnswerRe: hide a column in gridview Pin
debasish mishra28-Jan-18 23:10
professionaldebasish mishra28-Jan-18 23:10 
GeneralRe: hide a column in gridview Pin
Member 1364937528-Jan-18 23:21
Member 1364937528-Jan-18 23:21 
GeneralRe: hide a column in gridview Pin
debasish mishra28-Jan-18 23:40
professionaldebasish mishra28-Jan-18 23:40 
QuestionLooking for good webforms HTML editor with server file manager Pin
A_Griffin28-Jan-18 1:50
A_Griffin28-Jan-18 1:50 
QuestionLooking for ASP .NET Trainer Pin
Anjo Bulaon28-Jan-18 0:23
Anjo Bulaon28-Jan-18 0:23 
AnswerRe: Looking for ASP .NET Trainer Pin
Richard MacCutchan28-Jan-18 1:59
mveRichard MacCutchan28-Jan-18 1:59 
AnswerRe: Looking for ASP .NET Trainer Pin
debasish mishra29-Jan-18 20:22
professionaldebasish mishra29-Jan-18 20:22 
GeneralInterception In EF Core and EF2.0 Pin
Priyanka Kale25-Jan-18 0:32
Priyanka Kale25-Jan-18 0:32 
GeneralRe: Interception In EF Core and EF2.0 Pin
Richard MacCutchan25-Jan-18 0:57
mveRichard MacCutchan25-Jan-18 0:57 
QuestionMissing namespaces Pin
Redvan24-Jan-18 8:33
Redvan24-Jan-18 8:33 
AnswerRe: Missing namespaces Pin
Richard Deeming24-Jan-18 8:41
mveRichard Deeming24-Jan-18 8:41 
GeneralRe: Missing namespaces Pin
Redvan24-Jan-18 10:16
Redvan24-Jan-18 10:16 
QuestionAsp.net multiline textbox automatically inserting Pin
George Viveiros19-Jan-18 11:01
George Viveiros19-Jan-18 11:01 
AnswerRe: Asp.net multiline textbox automatically inserting Pin
Vincent Maverick Durano23-Jan-18 12:04
professionalVincent Maverick Durano23-Jan-18 12:04 
GeneralRe: Asp.net multiline textbox automatically inserting Pin
George Viveiros29-Jan-18 6:36
George Viveiros29-Jan-18 6:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.