EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: stephenl on December 31, 2024, 08:15:48 AM



Title: Saving passed value to variable
Post by: stephenl 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



Title: Re: Saving passed value to variable
Post by: stephenl on December 31, 2024, 08:42:52 AM
Solved

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





Title: Re: Saving passed value to variable
Post by: jega 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. ;-)