0

I want add some css on input checkbox for all browsers (chrome, firefox, ie - 6 7 8) if jquery is the last option please do let me know and must supporting for all browsers

can anyone help how can i do that..?

1

2 Answers 2

4

Use an attribute selector

[type=checkbox] {
    /* some rules */
}
Sign up to request clarification or add additional context in comments.

2 Comments

not working you rules Quentin do you have any other option...?
0
$("#checkboxid").css({'height':'12px;'width':'12px;etc});

reference css

7 Comments

If the checkbox has an ID why would you use jQuery over just selecting it with css as normal?
i am giving an idea that how add dynamic css by jquery
not working your rules kk do you have any other option...? i tired your too but it comes error with red mark
removeetc in my code it is for just a demo and give name od fyour css property which you want to apply i will give you all set code thanks @ShresthaBros
this is my html code please have a look <div class="custom-checkbox"> <input id="check-3" type="checkbox" value="epic" name="genre"/> <label class="" for="check-3">Epic / Historical</label> </div>
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.