how to append a p tag to a div is something is hidden jquery code example
Example: data attribute hide & show function syntax in jquery
$('.test').hide().filter('[data-word="AAA"][data-type="BBB"][data-number="2"]').show();
$('.test').hide().filter('[data-word="AAA"][data-type="BBB"][data-number="2"]').show();