For testing purposed I want to search through the media of the featured image. But I can't seem to activate the search.
From the admin product detail page I now have:
// open featured image
document.getElementById('postimagediv').getElementsByTagName('a')[0].click();
// input text string
document.getElementById('media-search-input').value = "test string";
Can't seem to trigger the search with .click(), .focus() or .blur(). There's also no button to hit because WP has a live search functionality.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742255120a4409881.html
评论列表(0条)