Monday, 30 September 2013

Change submit button image the very moment when radio button is selected in php

Change submit button image the very moment when radio button is selected
in php

This is the dynamic radio button:
echo "<input type='radio' name='q_id' value='.$ans[$i].'
id='.$i.'>$ans[$i].";
and here is the submit button:
<input type="submit" name="submit" id="submit" value="Submit"
style="border: 0; background: transparent"><img src="images/skip.png"
alt="submit_x" width="223" hspace="40" height="49"/>
I want to change the image source in the button the very moment when radio
button is clicked. New image source will be "images/next.png"
This change in image has to be done before submitting the form.

1 comment:

  1. Git and Github Online Training
    Github
    Git
    What is Git?
    Installing Git
    Getting Started
    Git Concepts and Architecture
    Making Changes to Files
    Undoing Changes
    Ignoring Files
    Navigating the Commit Tree
    Branching
    Merging Branches
    Stashing Changes
    Remotes
    Tools and Next Steps
    Conclusion
    Real-time Scenarios

    Git and Github Online Training, ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING http://www.21cssindia.com/courses/git-and-github-online-training-248.html The 21st Century Software Solutions of India offers one of the Largest conglomerations of Software Training, If you’re serious about a career in IT, 21st Century would like to provide you a guidance don’t hesitate to organize a free demo session. For any further information regarding the courses once go through our website Visit: http://www.21cssindia.com | Call Us +917386622889 - +919000444287 - contact@21cssindia.com

    ReplyDelete