JSP dropdownlist onChange

别等时光非礼了梦想. 提交于 2019-12-11 19:11:02

问题


Can i use a .jsp file as a parameter for onChange in a dropdownlist? Like this :

<td><select name="transporter" onchange="debusTransporter.jsp">

回答1:


Answer is No.

Explanation

onchange

The onchange property sets and returns the event handler for the change event.

The term event handler may refer to:

  • any function or object registered to be notified of events,
  • or, more specifically, to the mechanism of registering event listeners via on... attributes or properties in HTML and other web APIs, such as <button onclick="alert(this)"> or window.onload = function() { /* ... */ }.

See also

  • w3.org ONCHANGE-SELECT
  • reference.sitepoint.com onchange


来源:https://stackoverflow.com/questions/20874663/jsp-dropdownlist-onchange

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!