BrettHartel Posted January 14, 2013 Share Posted January 14, 2013 Thanks for taking the time to help me. I am not sure where to start with the effect I would like. There will be a dropdown list and I would like a picture next to it. Then, as the user selects different inputs from the dropdown list the picture will change accordingly. I appreciate any help I can receive. Thank you, Brett Hartel Quote Link to comment Share on other sites More sharing options...
Dharmender Posted January 14, 2013 Share Posted January 14, 2013 (edited) Thanks for taking the time to help me. I am not sure where to start with the effect I would like. There will be a dropdown list and I would like a picture next to it. Then, as the user selects different inputs from the dropdown list the picture will change accordingly. I appreciate any help I can receive. Thank you, Brett Hartel You can use Ajax and jquery for onchange of dropdownlist value and submit the value. On that value show image $.("#drpdn).change(function(){ $.ajax({ type: "POST", url: "image.php", //your current php file data: 'drpdn':$("#drpdn").val(), dataType: 'html', success: function() { } }); }); get the value of drpdn and use it to find image corresponding to it like if(isset($_POST['drpdn'])) { $drpdn=$_POST['drpdn']; ///code to find image corresponding to $drpdn Edited January 14, 2013 by Dharmender Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted January 14, 2013 Share Posted January 14, 2013 (edited) Here's a solution using Javascript: http://www.javascrip...pt/cut174.shtml There are many other options available through Google: https://www.google.c...ed on drop down Edited January 14, 2013 by cyberRobot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.