Home > DeveloperSection > Forums > jQuery show/hide specific news - depending on click
marcel ethan
marcel ethan

Total Post:105

Points:735
Posted on    May-11-2013 2:06 AM

 JavaScript JavaScript 
Ratings:


 1 Reply(s)
 854  View(s)
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!




AVADHESH PATEL

Total Post:604

Points:4228
Posted on    May-11-2013 9:52 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick