Input Number step Attribute
Definition and Usage
step
The attribute sets or returns the value of the step attribute of the number field.
The HTML step attribute specifies the valid numeric interval of the number field.
Example: step="3"
If so, the valid numbers can be -3, 0, 3, 6, etc.
Tip:The step attribute can be used with max and min Use attributes together to create a series of valid values.
See also:
HTML Reference Manual:HTML <input> step প্রতিশব্দ
Example
Example 1
Get the valid numeric interval of the number field:
var x = document.getElementById("myNumber").step;
Example 2
Change the valid numeric interval of the number field:
document.getElementById("myNumber").step = "5";
Syntax
Return step attribute:
numberObject.step
set step attribute:
numberObject.step = number
প্রতিশব্দ
মান | বর্ণনা |
---|---|
number | সংখ্যাত্বক ফিল্ডের বৈধ সংখ্যাত্বক অন্তর নির্দিষ্ট করে।ডিফল্ট 1 |
প্রযুক্তিগত বিবরণ
ফলাফল: | শব্দমালা মান, যা সংখ্যাত্বক ফিল্ডের বৈধ সংখ্যাত্বক অন্তরকে নির্দেশ করে |
---|
ব্রাউজার সমর্থন
চ্রম | এডজ | ফায়ারফক্স | স্যাফারি | অপেরা |
---|---|---|---|---|
চ্রম | এডজ | ফায়ারফক্স | স্যাফারি | অপেরা |
সমর্থন | 10.0 | সমর্থন | সমর্থন | সমর্থন |