| |

VerySource

 Forgot password?
 Register
Search
Author: yoto999

I have been engaged in .net development for a year and a half, and encountered a very difficult problem (how to cancel t

[Copy link]

0

Threads

17

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-4-28 22:45:01
| Show all posts
It doesn't make much sense.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-5-1 16:00:01
| Show all posts
Thank you in advance forsunray's answer.
But what I need is the implementation in javascript.
PS: Maybe you haven't met this demand yet, so it doesn't make much sense. My job now is to implement this kind of function: choose one or none. (Some may be wrongly selected and need to be cancelled).
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-5-1 23:45:01
| Show all posts
It would be better to make a multi-option and then implement the logic of choosing only one.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-5-4 11:45:01
| Show all posts
togallup:
   The main reason is that I didn't realize that I could not choose at the beginning (think it was a single choice). If you modify it, you need to change many places, which is very troublesome. (And my radiobuttonlist is placed in datagrid)
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-6 00:15:01
| Show all posts
Be a drop-down box
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-5-9 14:30:01
| Show all posts
<script>
        var r1 = false;
        function test1 ()
        {
        var list = document.getElementsByName ("test");
        if (r1) document.getElementById ("Radio1"). checked = false;
        r1 = document.getElementById ("Radio1"). checked;
        
        alert (r1);
        }
</ script>
<input type = radio id = radio1 />
It feels like a global variable is needed to store the selected value.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-5-12 12:45:01
| Show all posts
Is there no way to achieve it? ? 555 ~~~~~~~~~~
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-13 10:00:02
| Show all posts
<input type = "reset" value = "overwrite all" name = "B2">
But this way all your input work is gone
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-13 20:15:01
| Show all posts
Finally, add a Radiobutton title: None of the above.
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-5-14 19:15:01
| Show all posts
OK, I tried
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list