I have Attribute Filter like this one $(’input[name="email"]‘);
I want to create a function with parameter, which would contain name of attribute..something like this:
function test(id_new){
var var_name = $("input[name='"+id_new+"']:checked").val();
alert(var_name);
}
but this code is not working, any solutions?