Results 1 to 3 of 3

Thread: Jquery Help

  1. #1
    Join Date
    Jan 2011

    Jquery Help

    I can get similar to work for a select(drop down) but I really need the image swap using a radio button.

    I just can't get this to work:

    <input type="radio" name="profile_product_id" value="1">
    <input type="radio" name="profile_product_id" value="2">
    <script type="text/javascript">
    $("input[@name='profile_product_id']").change(function () {
    $('#ppimg').attr('src', '/images/bus_plan_' + $("input[@name='profile_product_id']:checked").val() + '_chg.jpg');
    </script> ppimg is the image I want to swap.

    E-nable My Biz!
    E-business development, marketing and webhosting.
    NEW! E-nabled FB Pages! Custom Facebook Pages for your business.

  2. #2
    Hi go through the tutorials provided in, Hope this will help.

  3. #3
    Join Date
    May 2004
    Remove the @ from in front of name in your selectors and it'll work.

Similar Threads

  1. need small help on jQuery
    By PalestineMafia in forum Programming Discussion
    Replies: 0
    Last Post: 12-08-2010, 09:43 AM
  2. Seeking Experienced Jquery/Jquery-UI Coder - Simple project
    By Dub in forum Employment / Job Offers
    Replies: 1
    Last Post: 06-30-2010, 08:20 AM
  3. Jquery Help
    By creativeartist in forum Programming Discussion
    Replies: 7
    Last Post: 05-18-2010, 05:35 PM
  4. jQuery Help
    By SBTE in forum Programming Discussion
    Replies: 7
    Last Post: 08-10-2009, 10:41 PM
  5. jQuery.
    By vivei in forum Programming Discussion
    Replies: 1
    Last Post: 06-08-2008, 04:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts