and posting of events



  • There's a block and a click on the block. id="event1" 1 event js. c id="close_event1" relevant other event. But since the first block is the parent of the second, we only click on one block in both optionsarily, the question is how to put an event on the built-in block so as not to move it outside of the parent, since when it is clicked on the last one, the parent must hide, and it's not very convenient.

         <div class="main_block_participation">
            <div class="event_border" id="event1">            
                <div class="event_image">
                    <img src="images/product/Без имени-1.jpg" />
                    <div class="event_note">
                        <div id="event_calendar_left">Left</div>
                        <div id="event_calendar_count">#</div>
                        <div id="event_calendar_days">Days</div>
                    </div>                    
                </div>                 
                <div class="event_close" id="close_event1">
                    <img src="images/menu/bt_close_login_form.png" />
                </div>
                <div class="">
                    <div class="event_date">19 December - 20 November</div>
                    <div class="event_description">   text  text  text </div>
                </div>           
            </div>
        </div>
    


  • In order to avoid a parenting click, you need to add a clicker to this element and use the event stop function.stopPropagation();




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2