Solved

display a 'X' for an html checkbox

Posted on 2013-06-17
2
239 Views
Last Modified: 2013-08-27
Hi experts,

Is it possible display a 'x' for an html checkbox when we click on instead of 'tick' mark. Can we change this? Maybe using a Javascript code?

Regards,
0
Comment
Question by:alcani
2 Comments
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39255323
You mean you want to use custom it is possible using css only also:
http://www.wufoo.com/2011/06/13/custom-radio-buttons-and-checkboxes/
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39255325
I think you are better off leaving it a check as is since that will be easier to make your form compatible with multiple devices and browsers.   Otherwise, the way to do what you want is with a sprite like shown here

http://csscheckbox.com
and
http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-easy-css3-checkboxes-and-radio-buttons/. ( Just make your own sprite with an X instead of a Tick.)

Alternative options with a tick.
http://www.inserthtml.com/2012/06/custom-form-radio-checkbox/
http://cssdeck.com/labs/css-checkbox-styles.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question