I just want to adjust conditionally the vertical position of the label text element (intitule1) of some instances of the same symbol :
var intitule1 = case_symb.$('produit1');
if (entree.sR2 == "")
var intiTop = parseInt( intitule1.css( 'top')); // 107
intiTop = (intiTop +5) +'px'; // "112px" : ok
intitule1.css( 'top', intiTop); // doesn't work
What am I doing wrong ? Any ideas ? Thanks.
have you tried adding the unit like this
intitule1.css( 'top', intiTop +'px');
Sadly, not better, Darrell I will sleep on it
Try creating a new variable instead of self-assigning, and possibly breaking it up and casting to a string explicitly. Other than that, it looks okay right now to me. Is it failing silently, or are you getting some kind of JS error?