Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try taking all of this out of the start() function:</p> <pre><code> $('.tm').change(function(){ var tm = $(this).val(); var ta = $(this).parents('tr').find('.ta').val(); if( !ta || !tm ){ $( "#hTouren" ).dialog( "open" ); } var tag = $(this).parents('tr').find('td:nth-child(1)').text(); var id = $("#MUChooseMitarbeiter option:selected").val(); $.post("interface/POST/stundenUPDATE.php",{'id':id,'tm':tm,'ta':ta,'tag':tag}); }); $('.ta').change(function(){ var ta = $(this).val(); var tm = $(this).parents('tr').find('.tm').val(); if( !ta || !tm ){ $( "#hTouren" ).dialog( "open" ); } var tag = $(this).parents('tr').find('td:nth-child(1)').text(); var id = $("#MUChooseMitarbeiter option:selected").val(); $.post("interface/POST/stundenUPDATE.php",{'id':id,'tm':tm,'ta':ta,'tag':tag}); }); $('input[type="text"]').change(function(){ var name = $(this).attr("name"); var std = $(this).val(); var tag = $(this).parents('tr').find('td:nth-child(1)').text(); var id = $("#MUChooseMitarbeiter option:selected").val(); $.post("interface/POST/stundenUPDATE.php",{'id':id,'name':name,'std':std,'tag':tag}); }); $('.StundenEnd input[type="text"]').change(function(){ $('#MUShow').button().click(start); }); </code></pre> <p>It looks to me like you're trying to delegate an "onchange" event on those elements.</p> <p>Also, if you want to trigger the click event at the end, you have to call it directly without any parameters.</p> <pre><code>$('#MUShow').button().click(); </code></pre> <p>You have to have the following somewhere else in the document, however, for that to work.</p> <pre><code>$('#MUShow').click(function(){ start() }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload