| |

VerySource

 Forgot password?
 Register
Search
View: 694|Reply: 7

Wait online! !! !! !! How can I make a listbox call a function of JAVASCRIPT?

[Copy link]

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-3-1 02:00:02
| Show all posts |Read mode
I adjusted a new form on a page, and then there is a LISTBOX in this form.
, Close the form, and then pass the selected value back to the parent page
Reply

Use magic Report

0

Threads

64

Posts

45.00

Credits

Newbie

Rank: 1

Credits
45.00

 China

Post time: 2020-5-9 21:00:02
| Show all posts
ListBox1.Attributes.Add ("onclick", "return jsfunction ('" + ListBox1.ClientID + "')");
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-5-13 20:45:01
| Show all posts
ListBox1.Attributes.Add ("onclick", "window.opener.document.all [returnid] .value = ('" + ListBox1.ClientID + "')");
Reply

Use magic Report

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-5-14 16:30:02
| Show all posts
('"+ ListBox1.ClientID +"') ");
What is LISTBOX? Can you tell me more?
Reply

Use magic Report

0

Threads

29

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-5-15 11:15:01
| Show all posts
What is LISTBOX? Can you tell me more about it? ---- Controls for the new form
Reply

Use magic Report

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-5-15 17:15:01
| Show all posts
Now there is a problem, I have to click LISTBOX once to give the value to a text box, and then click once to pass the value back, how to solve this problem?
Reply

Use magic Report

0

Threads

29

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-5-16 12:00:02
| Show all posts
Set a variable, add one at a time, and pass it back when = 2
Reply

Use magic Report

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-5-16 20:45:01
| Show all posts
But I just want to close it once and pass it on 55555555555
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