0

In my whole application i have globally declared textbox style as in css

input[type='text'], input[type=password], textarea { //My styles }

I need to remove this style from search textbox

<input id="txtSerach" type="text" placeholder="Search here..." required />
1
  • 1
    you have a unique ID on this input, use it and reset those properties what you don't want on this. Commented Jan 8, 2016 at 7:32

2 Answers 2

2
input[type='text']:not(#txtSearch), input[type=password], textarea { //My styles }
Sign up to request clarification or add additional context in comments.

Comments

0

If it is HTML5 you can also use input type="search" and use different css for all search fields

<input id="txtSerach" type="search" placeholder="Search here..." required />

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.