How do you simulate typing using jQuery?
问题 Like how the click() can be used to trigger a click event on an element, is there any way to simulate the typing of a string? 回答1: Are you looking for a way to trigger the events associated with typing or do you want to append text to a container so that it looks like someone is typing? If you're looking for the events, then @Nick is absolutely correct in suggesting the methods for triggering the event. If the latter, you'll want to use a timer to replace the text/html of the container with