EasyUI Forum
September 13, 2025, 02:15:35 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: load form with a var  (Read 7307 times)
Marco
Newbie
*
Posts: 12


View Profile Email
« on: November 14, 2014, 04:34:42 PM »

Hi !

J was wondering if it is possible to fill a text box in form with the value of another field j mean

$('#ff').form('load',{
   name:'name2',
   email:'mymail@gmail.com',
   subject:'subject2',
   message:'message2',
   language:5
});

can j  change 'name2', with a var ?

j need to fill the field name with the value of another field.

J do hope is quite clear.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 14, 2014, 11:35:14 PM »

That is no problems, the code below also works well.
Code:
var name = 'name2';
$('#ff').form('load',{
   name:name,
   email:'mymail@gmail.com',
   subject:'subject2',
   message:'message2',
   language:5
});
Logged
Marco
Newbie
*
Posts: 12


View Profile Email
« Reply #2 on: November 15, 2014, 06:47:36 AM »

OK !
Thanks a lot.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!