var post = {
ps: $('#find-posts-input').val(),
action: 'find_posts',
- _ajax_nonce: $('#_ajax_nonce').val()
+ _ajax_nonce: $('#_ajax_nonce').val(),
+ post_type: $('input[name="find-posts-what"]:checked').val()
};
- var selectedItem;
- $("input[@name='itemSelect[]']:checked").each(function() { selectedItem = $(this).val() });
- post['post_type'] = selectedItem;
-
$.ajax({
type : 'POST',
url : ajaxurl,