开发者

Binding buttons to textbox

I created this jFi开发者_如何学运维ddle here: http://jsfiddle.net/NkxHD/3/ in which I want to bind buttons to textbox. So if I click '7' I want 7 to be displayed in the textbox. Something like this:

function(e){} --

How should I do this?


Here's an update

and here is more complete one:

Click Me


here is the update I add a class "number" to each number button so that the event will not be fired with other buttons.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜