Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery html() changes not visible after calling another function
    text
    copied!<p>A function used to insert bbcodes into a textfield breaks a jquery click function that makes use of the html() method.</p> <p>If the jq click function gets called after the tag function, changes made by html() won't display on the view page. In Firebug I can see that changes are applied they just won't get rendered.</p> <p>jquery function that breaks:</p> <pre><code>$('.ev').on("click", function(){ $(this).val() ? $('#replytext').load("/quote.php",{ "id" : $(this).val() }) : $('#replytext').html(''); }); </code></pre> <p>the tag function that breaks the jquery function is <a href="http://aktuell.de.selfhtml.org/artikel/javascript/bbcode/" rel="nofollow">here</a>.</p> <p>Any hints/suggestions?</p> <p>Think like that: Click the quotebutton -> click the tag button. Now if you click the quote or no-quote button again the content should change to quote or empty but it remains like: quote[tag][/tag]. </p> <p>Firebug shows the reseted content.</p> <p>Something freezed. If I load a quote and insert a tag and load the quote again to reset the tags and try to use the insert tag function again the insert tag function still inserts tags but this time the newly inserted tags have no effect on the html displayed in Firebug. The insert function breaks the viewed textarea (if the jquery function is called after the tag function) and after breaking it it uses the "death textarea" but without changing the html viewed in Firebug.</p> <p><strong>Link to a HTML pasty:</strong> <a href="http://pastecode.org/index.php/view/79279327" rel="nofollow">index.html</a> Edit: .val() works but .load() doesn't.</p>
 

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