JQUERY SHOW/HIDE SPECIFIC NEWS - DEPENDING ON CLICK

marcel ethan

Total Post:105

Points:735
Posted by  marcel ethan
 1136  View(s)
Ratings:
Rate this:
Hi Expert!

I want to display full article when user clicked on "View Full Article". How to achieve this.

My line of code as following

<script type="text/javascript">
$(document).ready(
    function(){
        $("#show").click(function () {
            $(".news").show("slow");
        });
    });
</script>

Thanks in advance!


  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: jQuery show/hide specific news - depending on click

    Hi Marcel!


    Try as following 

    $('#btn-reveal-articles').click(function() {
        $('#article-div').toggle();
    });

    It's hard to determine what you're after without any code to show or a clear definition of the problem.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!