单击按钮时替换文本区域中的文本
我正在尝试向侧边栏添加一个文本区域,用户可以在单击按钮时将文本转换为数字。
代码在此jsfiddle中: http://jsfiddle.net/DF5Xf/
当我点击按钮时什么也没有更改...我需要更改代码才能使其正常工作吗?
我花了一个小时寻找解决方案...
谢谢
I'm trying to add a textarea to the sidebar where users can convert text to numbers on button click.
The code is in this jsfiddle: http://jsfiddle.net/DF5Xf/
When I click on the button nothing changes... Is there something that I need to change in the code to make it work?
I have spent an hour looking for a solution...
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
可以了,你只需要把左边的框架改成 jQuery 就可以了。 :)
示例
It works, you just needed to change the framework on the left to jQuery. :)
Example
您在侧边栏上选择了 MooTools,而不是 jQuery
已修复: http://jsfiddle.net/DF5Xf/1/
You have MooTools selected not jQuery on the side bar
Fixed: http://jsfiddle.net/DF5Xf/1/
实际上,你的代码是有效的,你只是忘记在你的小提琴中加载 jQuery 。这是修改后的版本:
http://jsfiddle.net/NvNYL/
Actually, your code works, you just forgot to load jQuery in your fiddle. Here is the modified version:
http://jsfiddle.net/NvNYL/