ontarget
Active Member
Hi
I am trying to run 3 javascript validations on an element
2 Validations done with the Fabrik standard functions work fine
on Load value <100 Hide element "A"
on Change value >=100 Show element "A"
so far so good...
However I have another element called "B"
If the Value of "B" === "0" it should hide element "A" even if the value of "A" is greater than 100.
I tried running the following inline javascript on element "A"
Nothing happens - as I'm pretty crap at JS I'm wondering if its my code or is it simply that there is a conflict and the standard on Change function overrides my inline function?
Thanks for any pointers!
I am trying to run 3 javascript validations on an element
2 Validations done with the Fabrik standard functions work fine
on Load value <100 Hide element "A"
on Change value >=100 Show element "A"
so far so good...
However I have another element called "B"
If the Value of "B" === "0" it should hide element "A" even if the value of "A" is greater than 100.
I tried running the following inline javascript on element "A"
JavaScript:
var $b = $('aaa_participant_claim___allow_overnight');
var overnight = $b.value;
if (overnight === 0)
{this.setStyle('display','none');}
Nothing happens - as I'm pretty crap at JS I'm wondering if its my code or is it simply that there is a conflict and the standard on Change function overrides my inline function?
Thanks for any pointers!