How would i trigger an event when the user clicks inside the text field below.
The problem I have is the only tag I can add id/class to is the
which sits outside the actual form field.
<p class="trigger">
<input type="text" name="test">
</p>
I don’t want a generic trigger on input tag this is not suitable
$(input).focus(function() {
alert('triggered');
});
it really needs to be associated with the p class ‘trigger’
any help would be fantastic
Have you tried
Live Demo