I've got the following output in my HTML
<input type="hidden" value="28" name="variation_id">
This value is generated dynamically. I want to write an If else statement that is dependant on this value i.e. the "28". I'm not quite sure on how to target this value since it has no ID. Is there a code to read out this value, via the "name" attribute?
I want to write the if else statement in Javascript.
parseInt([value]);(replacing [value] with the value) in order to get a number you can use.