This is my ajax call
jQuery.post(ajaxurl, data, function(response) {
var slug = $(response).find(".return_product_cat").val();
alert(slug);
});
This is the html being returned
<input type='hidden' class='return_product_cat' value='test_cat' />
When i alert it says undefined but it should say test_cat? How do i solve?