如何根据下拉列表中的选择使用默认值填充文本字段或将其留空?
该表单包含一个下拉列表和一个具有默认值的文本字段,如果用户更改下拉列表选项,则文本字段必须为空。 JavaScript 中适合执行此操作的函数是什么?
The form contains a drop down list and a text field with a default value, if the user changes the drop down list choice, the text field must be empty.
What's the suitable function in JavaScript to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我得到你想要的,我建议使用jquery示例在这里 http://jsfiddle.net/WHWyS/
If I get what you want I would suggest using jquery example is here http://jsfiddle.net/WHWyS/