javascript - How to diagnose why added element disappears -


jquery-3.1.0

this script adds "blablabla". after page reloads. so, added element disappears.

when stop in debugger (the brekapoint in code), "blablabla" vaisible, make step , occur somewhere in middle of jquery. tried show occur.

i have removed irrelevant scripts, still can't localize problem.

and of course can't model in jsfiddle.

could give me kick here?

<script>      function show_frame_person_create_get(){         $("#people").after("blablabla");         debugger;     }       function init_frame_person_create(){         var person_create_button = $('#person_create');          person_create_button.click(show_frame_person_create_get);     }      init_frame_person_create();  </script>   jquery.event = { ...     dispatch: function( nativeevent ) {         // determine handlers         handlerqueue = jquery.event.handlers.call( this, event, handlers                      ret = ( ( jquery.event.special[ handleobj.origtype ] || {} ).handle ||                         handleobj.handler ).apply( matched.elem, args );                      if ( ret !== undefined ) { // occur here! ); 


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -