Try this: var $msg = $('#Message'); if (!$msg.val()) {$msg.after('<label for="Message" generated="true" class="Welcome">Welcome Text</label>');
}
--Karl ____________ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 27, 2008, at 5:58 PM, shapper wrote:
Hello, I need to check if an input, #Message, value is empty. If it is I need to add the following after it: <label for="Message" generated="true" class="Welcome">Welcome Text</ label> How can I do this? Thanks, Miguel