thumbsup and thumbs down just like yahoo answers

Hi..

i was looking yesterday at yahoo answers and they had a very nice option of giving the votes of yes/no using the thumbsup and thumbs down.

i checked it and it is like with the use of jquery (NICE)

how it can be achieved and stopping the user from doing it again and again for the same answer.

i know this can be done but as a noob in jquery this has some troubled me a lot
LVL 16
Gurpreet Singh RandhawaCEOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lukasz ChmielewskiCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rajeeshmcaCommented:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript" src="scripts/jquery.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
                $("h2.trigger").toggle(function(){
                        $('#imageToggle').attr('src','images/thumbsdown.jpg');
                        }, function () {
                        $('#imageToggle').attr('src','images/thumbsup.jpg');
                });
        });

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <h2 class="trigger">
            <img src="images/thumbsup.jpg" alt="Your selection" id="imageToggle"/></h2>
    </form>
</body>
</html>
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.