Forums

function with parameter don't work ?

eric67 30 May, 2019
Hello

I call a function since a combobox in a repeater :

in the combo I call the funtion :effacer({var:area_repeater5.key}) : the function don't work

if I call the function without parameter: effacer it's work

so I can't send information to a function ???

where is my error ?

thanks a lot for your help

eric
healyhatman 30 May, 2019
Well look in your javascript console, are there any errors? And WHEN do you call this function, and how?
eric67 02 Jun, 2019
I create a clear form


I have a function javascript on load

function t1()
{
alert("hello");
}

and a button with event on click : function : t1 : it's work

but if use

javascript

function t1(lib)
{alert(lib);}

and a button with event on click : function : t1("hello") : it's doesn't work


debug :
Error: Syntax error, unrecognized expression: :input[name="t1("hello")"]



eric
This topic is locked and no more replies can be posted.