EasyUI Forum
July 19, 2025, 07:25:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Saving passed value to variable  (Read 3476 times)
stephenl
Newbie
*
Posts: 40


View Profile
« on: December 31, 2024, 08:15:48 AM »

Hello

I have the following

Code:
function doSearch(){
$('#dg').datagrid('load',{
name: $('#name').val(),
});
}

Which works well ie passed the parameters to server.

How would I save the parameter value to a var ??

Thank you

Logged
stephenl
Newbie
*
Posts: 40


View Profile
« Reply #1 on: December 31, 2024, 08:42:52 AM »

Solved

var name = $('#name').val();



Logged
jega
Full Member
***
Posts: 223


View Profile
« Reply #2 on: January 01, 2025, 03:12:58 PM »

Hi.

Happy New Year.

Just say it. Your question is fundamental javascript and is off topic in this forum. You can find javascript programming on thousands of other sites.

Everyone in this forum looks for Q and A about easyui for jquery/vue/angular/react. ;-)
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!