How to make the calendar popup on click of a calendar icon ?

前端 未结 4 929
借酒劲吻你
借酒劲吻你 2021-01-28 19:08

I am working on the website in which I want to popup the calendar on hitting calendar icon.

The HTML code which I have used in order to place Start Date

4条回答
  •  没有蜡笔的小新
    2021-01-28 20:06

    Just an Id to the Calendar icon and click action to the corresponding icon using javascript

            $(document).ready(function() {
              $('#calendar1').click(function(event) {
                $('.start_date').datepicker('show');
              });
    
    
              $('#calendar2').click(function(event) {
                $('.end_date').datepicker('show');
              });
            });
    
            
            
            
            
            
    
        

提交回复
热议问题