My JS code was doing great until i added the following function :
$(".meassure-combo").change(function() {
switch ($(this).attr("name")) {
case "bust-combo":
case "shou-combo":
case "wais-combo":
case "hips-combo":
case "imse-combo":
$("[rel='"+$(this).attr("name")+"']").val( $(this).val() ).change();
break;
}
switch ($(this).attr("rel")) {
case "bust-combo":
case "shou-combo":
case "wais-combo":
case "hips-combo":
case "imse-combo":
var type = $(this).attr("rel");
var val = $(this).val();
$("[name='"+type+"']").val(val).change();
CL3D.interpolation(type,val);
break;
}
});
after adding this code i started getting the following error in console
Uncaught RangeError: Maximum call stack size exceeded at RegExp.test ()
what is the problem and how can i solve it ?
thank you in advance