Click here to Skip to main content
14,734,921 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: Bootstrap CSS: How to bring X icon for textbox Pin
Richard Deeming30-Jan-18 1:50
mveRichard Deeming30-Jan-18 1:50 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
A_Griffin30-Jan-18 2:09
MemberA_Griffin30-Jan-18 2:09 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Richard Deeming30-Jan-18 2:16
mveRichard Deeming30-Jan-18 2:16 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Richard Deeming30-Jan-18 8:05
mveRichard Deeming30-Jan-18 8:05 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
A_Griffin30-Jan-18 8:23
MemberA_Griffin30-Jan-18 8:23 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Mou_kol30-Jan-18 22:31
MemberMou_kol30-Jan-18 22:31 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Mou_kol30-Jan-18 22:33
MemberMou_kol30-Jan-18 22:33 
GeneralRe: Bootstrap CSS: How to bring X icon for textbox Pin
Richard Deeming31-Jan-18 8:53
mveRichard Deeming31-Jan-18 8: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:
    .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 21:42
MemberMou_kol31-Jan-18 21:42 
Questionhide a column in gridview Pin
Member 1364937528-Jan-18 23:43
MemberMember 1364937528-Jan-18 23:43 
AnswerRe: hide a column in gridview Pin
debasish mishra29-Jan-18 0:10
professionaldebasish mishra29-Jan-18 0:10 
GeneralRe: hide a column in gridview Pin
Member 1364937529-Jan-18 0:21
MemberMember 1364937529-Jan-18 0:21 
GeneralRe: hide a column in gridview Pin
debasish mishra29-Jan-18 0:40
professionaldebasish mishra29-Jan-18 0:40 
QuestionLooking for good webforms HTML editor with server file manager Pin
A_Griffin28-Jan-18 2:50
MemberA_Griffin28-Jan-18 2:50 
QuestionLooking for ASP .NET Trainer Pin
Anjo Bulaon28-Jan-18 1:23
MemberAnjo Bulaon28-Jan-18 1:23 
AnswerRe: Looking for ASP .NET Trainer Pin
Richard MacCutchan28-Jan-18 2:59
mveRichard MacCutchan28-Jan-18 2:59 
AnswerRe: Looking for ASP .NET Trainer Pin
debasish mishra29-Jan-18 21:22
professionaldebasish mishra29-Jan-18 21:22 
GeneralInterception In EF Core and EF2.0 Pin
Priyanka Kale25-Jan-18 1:32
MemberPriyanka Kale25-Jan-18 1:32 
GeneralRe: Interception In EF Core and EF2.0 Pin
Richard MacCutchan25-Jan-18 1:57
mveRichard MacCutchan25-Jan-18 1:57 
QuestionMissing namespaces Pin
Redvan24-Jan-18 9:33
MemberRedvan24-Jan-18 9:33 
AnswerRe: Missing namespaces Pin
Richard Deeming24-Jan-18 9:41
mveRichard Deeming24-Jan-18 9:41 
GeneralRe: Missing namespaces Pin
Redvan24-Jan-18 11:16
MemberRedvan24-Jan-18 11:16 
QuestionAsp.net multiline textbox automatically inserting Pin
George Viveiros19-Jan-18 12:01
MemberGeorge Viveiros19-Jan-18 12:01 
AnswerRe: Asp.net multiline textbox automatically inserting Pin
Vincent Maverick Durano23-Jan-18 13:04
professionalVincent Maverick Durano23-Jan-18 13:04 
GeneralRe: Asp.net multiline textbox automatically inserting Pin
George Viveiros29-Jan-18 7:36
MemberGeorge Viveiros29-Jan-18 7: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.