ass="hljs-keyword">for</span> (<span class="hljs-keyword">let</span> event_name <span class="hljs-keyword">of</span> [<span class="hljs-string">&#x27;input&#x27;</span>, <span class="hljs-string">&#x27;change&#x27;</span>]) { <span class="hljs-comment">// &#x27;input&#x27; event is not supported in IE</span>
    $(<span class="hljs-string">&#x27;#limit_segment_count&#x27;</span>).on(event_name, <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>