Hello, I can not understand why the handler does not work ... as soon as I did not try. tried this:
<script lang="javascript"> $('#selectInput1').click(alert('1')); </script>
still tried this:
<script src = "js/functions.js"></script>
functions.js:
$(document).ready(function(){ var ajaxFormOptions = { success: showResponse, resetForm: true }; $('selectInput1').click(function(){alert('lol');}); }
The form:
<div class="form-group"> <label for="text">Имя отправителя</label> <div class="jq-selectbox jqselect"> <input id="selectInput1" class="form-control"></input> <div id="SelectDropdown1" class="jq-selectbox__dropdown" style="position: absolute; display:none"> <ul style="position: relative; list-style: none; overflow: auto; overflow-x: hidden;"> <li>1</li> <li>2</li> <li>3</li> </ul> </div> </div> <p class="help-block">Имя или номер</p> </div>
$('#selectInput1').click(function() { alert('lol'); });
- Mr. Black<script src = "js/jquery-1.12.3.min.js"></script> <script src = "js/jquery.form.min.js"></script> <script src = "js/bootstrap.min.js"></script> <script src = "js/functions.js"></script>
while viewing the code of the page, the console does not generate errors - Anton Burak