Input with step
-
Hello,
I would like to add the step attribute to the field type number but I can’t find any options for it? I tried to add javascript but the code does not work. On safari, it adds the step after each number. For example for a step of 5 -> 0/05/055/0555… On chrome, it does not take the code. Here is the code:
<script> $( document ).ready(function() { inputField = document.getElementsByName("fieldname5_1"); inputField[0].setAttribute("step", 5); }); </script>
Can you help me please ? Thanks by advance.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Input with step’ is closed to new replies.