I have this html inputs.
<input type='text' class='req-in' name='fname'>
<input type='text' class='req-in' name='lname'>
I am trying to do to add somr element next to the input field. I tried append() and prepend() but it goes wrong.
this is my code:
$('.req-in').blur(function() {
$(this).append('<p>some text here for this field only!</p>');
});
is this possible? my ideal output would be like this
<input type='text' class='req-in' name='fname'><p>some text here for this field only!</p>
<input type='text' class='req-in' name='lname'>