Javascript function behaviour

后端 未结 2 654
谎友^
谎友^ 2021-01-25 02:06

I have a problem with javascript. In my code there is a radio button, on click it should call the UcSelect() function. I tried the code below but it didn\'t work. T

2条回答
  •  旧巷少年郎
    2021-01-25 02:49

    script elements can have a src attribute or content, but not both. If they have both, the content is ignored (the content is considered "script documentation," not code).

    As you are using ASP.NET and rbtTipo is a server control you need to use Control.ClientID.

    <%= rbtTipo.ClientID %> will Gets the control ID for HTML markup that is generated by ASP.NET.

    
    
    

提交回复
热议问题