inheritance - Stopping jQuery toggle function running on child elements -


On website design, I have found a recent news section which shows thumbnails + recent new posts titled 12 newspapers in total (3 lines of 4) that are displayed. Through the CSS, the "Recent News" setting is set in the Div, which shows only the first line by default. This is jQuery that makes toggle height

  $ (document) .ready (function () {$ ("# recentnews"). Toggle (function () {// Show two lines ($ $ {"ScrollTop: $ (document) .height ()}," slow "); Return return;}, function () {// Show three lines (12) $ (this). Value ({height: 565}, 200); $ ("html, body"). Chetan ({scrollTop: $ (document). ()}, "Slow", return false;}, function () {// Show a line (4) $ (this). Value ({height: 211}, 200);})}};  

It works fine, but the problem I got That's something in the recent news diva that will run the toggle function. This is a problem because none of the latest news can now be physically clicked to go to the story.

Is there a way to remove the toggle legacy? Or am I toggling incorrectly?

You can use e.stop immediate (). On a click event, that click e Divijh the Ent (which can trigger other toggle depending on your code) will prevent them from propagating through.


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -