选择滚动事件

时间:2016-07-27 16:40:03

标签: jquery selectize.js

问题很简单。如何捕获选择性输入滚动事件。例如,我想每次用户在

中向下滚动时弹出一个警告框

http://fiddle.jshell.net/ragulka/3n2CP/4/?utm_source=website&utm_medium=embed&utm_campaign=3n2CP

1 个答案:

答案 0 :(得分:1)

试试这个:

{% load selectize_tags %}
<html>
 <head>  
 {% selectize_tags_media 'css' %}
 </head>
 <body>
  <label for="select-country">Country:</label>
  <select id="select-country" placeholder="Select a country...">
   <option value="">Select a country...</option>
   <option value="AF">Afghanistan</option>
   ....
  </select>
  ...

  {% selectize_tags_media 'js' 'jquery' %}
  <script>
   $('#select-country').selectize();
  </script>
 </body>
<html>