Post written in great detail,, seeking answers

Code section icon red box code is webpage red box label corresponding display, ${listproducts} springMvc came list collection.
Now I want to have the effect of clicking the radio button to get the picture display price, each scheme are from <c:forEach/> traverse out,, how should I click the radio button can obtain the corresponding price? Showing price what to do with the pop-up box? I had the effect of add up to plant the corresponding price and left basin pictures displayed on the page where the price the current price,, but now I click the radio button to get the corresponding prices are not resolved, would like to ask you.!!

Started by Josephine at November 12, 2016 - 10:19 PM

With Ajax, the price transmission to the server and then process the data and return, using the callback function partial refresh

Posted by Stanley at November 25, 2016 - 11:01 PM

1L is really fierce, why bother
The hidden field is redundant, prices in the B or I tags.

$('Click on the area of class.').click(function(){
$('The current price').html($(this).find('b').html())

Posted by Melissa at November 26, 2016 - 11:26 PM

<input type='radio' value='100' onclick='alert(this.value)'/>100
<input type='radio' value='200' onclick='alert(this.value)'/>200
<input type='radio' value='300' onclick='alert(this.value)'/>300

Posted by Aldrich at December 07, 2016 - 11:38 PM

First of all, the id='selIDs'has a problem, the cycle will repeat wrote ID, Bi problems, behind the id='price' similarly
Remove the first ID, and a id='price'back to class='price', jQuery code:
if(this.checked) {
var price = $(this).parent().find('.price').val();

Posted by Reginald at December 16, 2016 - 12:32 AM

Yes, I also use this way to do. Can help me to have a look this problem? JSON data transmission problem

Posted by Josephine at December 21, 2016 - 1:24 AM

Can I have a look at this question?

Posted by Josephine at January 04, 2017 - 1:57 AM

Yeah, like you this way,, can you help me to have a look this question?

Posted by Josephine at January 08, 2017 - 2:08 AM