?
Solved

display a 'X' for an html checkbox

Posted on 2013-06-17
2
Medium Priority
?
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

770 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