radiobox改变焦点时想弹出一个消息框
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub RadioButton1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles r.CheckedChanged
-------MsgBox( "ok ")
End Sub
End Class
就如上面所示,应该怎么做呢?
------解决方案--------------------改变焦点?
点击吧
<input type=radio id= "r1 " onclick= "alert(this.id) "> Click Me
------解决方案--------------------用JS
给RadioBox添加一个Onblur 事件。alert()