Hi, Im trying to modify a js code to display a chosen # in a dropdown menu and add 1 to the displayed #.
Here is a screen shot explaining.
var val = jQuery(this).val();
if (val == "" || val == 'none'){
jQuery(".persons").remove();
jQuery('.iff3').text('');
}
else
jQuery('.iff3').text(val); _**// this is the code line displaying the** #_
var curr = jQuery(".persons").length;
if (curr > val){
for (var i = 0; i < (curr-val); i++)
jQuery(".persons:last").remove();
} else {
var str = '';
How can i modify the code to show val+1? thanks, Alon