hi, i want to change the image class on click on the image, i am also using radio input, here is my fiddle, check out and tell me what is wrong?


Can you elaborate a bit more on what you are trying to do and what the actual problem is? I took a look at your jsfiddle example, but I'm not understanding what you mean by what is wrong?

What i want is when a user click on this radio inputs, or as you can see in the fiddle that even if the user click on the image the radio input got checked, so as a user click on the image or if a radio input is selected i want the style of the image to change, like adding a border, so that user knows that , that bordered image is selected . In the fiddle user cant tell which image is selected just by looking at those images.

Take a look at this updated http://jsfiddle.net/7aKY3/3/

your example, did not include the jQuery library and I slightly modified the script.