开发者

Change property from another form

开发者 https://www.devze.com 2023-02-05 02:36 出处:网络
I want to change propetry of several controls from another form. For example I\'m in form2.when 开发者_高级运维I click the button1, I want to change the text of textbox1 in form1 to another text.

I want to change propetry of several controls from another form. For example I'm in form2.when 开发者_高级运维I click the button1, I want to change the text of textbox1 in form1 to another text. How to I can do this. Thanks.


I would do this by binding the first button with jQuery to modify the values of the other form.

example:

$("form1 :button").click(function(){ $("form2 #textbox1").val("You clicked button1")};
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号