I have a bunch of textboxcontrol on my page all with class 'red'. On click of button, how can i retrieve all these values from textboxcontrol at same time in a variable? I also want to avoid empty controls.
i am trying this
var values=$('input[class="red"]') ??(what to put here)
function()
{
return $(this).val()
}
);