I want to create animation placeholder for input and select element.
I use a label block on select element at first as a placeholder, then click the label or select element , in ideal, the label will move to top as a title, and select element will show its options.
However, just when I click the area of select element but outside the label will action as I though; if I clicked the label, it would just move to top but not show select element's options. It should click select element again to show options.
So, I want to trigger select element by these method as following but not working...
$(document).on('click', '.moveable-disabled-option', function() {
$(this).prev().trigger('click');
$(this).prev().trigger('focus');
$(this).prev().focus();
})