开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜