开发者

html checkbox with an 'x' instead of the traditional tick

开发者 https://www.devze.com 2022-12-25 10:24 出处:网络
is it possible display a \'x\' for an html checkbox when we click on it. Traditionally on ie, (on winxp and greater) it appears as a \'tick\' mark. Can we change this? Or else what is the alternative

is it possible display a 'x' for an html checkbox when we click on it. Traditionally on ie, (on winxp and greater) it appears as a 'tick' mark. Can we change this? Or else what is the alternative to this in as开发者_开发知识库p.net


I guess you can hack something using images instead of a real checkbox, using javascript to change the image selection


I'm not sure if you are talking to Web Application or Windows application. Let's assume that you meant Web application. You can't change normal input, it's something in system settings.

However, you can put Javascript that will put CSS images instead. Example: http://www.whitespace-creative.com/jquery/jNice/ or http://aaronweyenberg.com/90/pretty-checkboxes-with-jquery


Check out the Ajax Control Toolkit's ToggleButton Control: http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ToggleButton/ToggleButton.aspx

I think it might be what you're looking for.


there's fancy-forms to accomplish exactly this

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号