You are viewing limited content. For full access, please sign in.

Question

Question

How can I always fix value

asked on April 4, 2018 Show version history

Hi all,

 

I need your help for my form please.

I have 3 string's fields (id_marque, Modèle and RID)

I need: RID = id_marque & Modèle

 

I made this

And it's working! My worries is about "timing".

Indeed, the function only executes when I leave one of the two fields (id_marque or Modèle)

 

I want to execute my function all the time. I wish it to be instantaneous.

 

How can I do ?

Thank in advance.

Regards

 

 

0 0

Answer

SELECTED ANSWER
replied on April 4, 2018

Hi,

 

I found how to do in javascript

$('#q1').keyup(function ()
	{

      	//On récupère les valeurs
      	var GetIdMarque = $('#q4 input').val();
      	var GetModele 	= $('#q1 input').val();
      	
      	//On applique la formule
      	var ReturnAll = GetIdMarque+GetModele ;
      	
      	//On retourne la valeur
      	$('#q7 input').val(ReturnAll);
      	
    })

 

2 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.