单击按钮时替换文本区域中的文本

发布于 2024-12-20 00:10:21 字数 229 浏览 3 评论 0原文

我正在尝试向侧边栏添加一个文本区域,用户可以在单击按钮时将文本转换为数字。

代码在此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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

黒涩兲箜 2024-12-27 00:10:21

可以了,你只需要把左边的框架改成 jQuery 就可以了。 :)

示例

It works, you just needed to change the framework on the left to jQuery. :)

Example

铜锣湾横着走 2024-12-27 00:10:21

您在侧边栏上选择了 MooTools,而不是 jQuery

已修复: http://jsfiddle.net/DF5Xf/1/

You have MooTools selected not jQuery on the side bar

Fixed: http://jsfiddle.net/DF5Xf/1/

音栖息无 2024-12-27 00:10:21

实际上,你的代码是有效的,你只是忘记在你的小提琴中加载 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文