manually trigger jquery keyup?

Solution 1:

Works fine for me: http://jsfiddle.net/radu/gD5WL/

$('#test').keyup(function () {
    console.log('hello');
});

$('#test').keyup();

The keyup event is getting called on page load.

Solution 2:

$('#inputItemName').trigger('keyup');

Solution 3:

You are missing a # in selector... try with hash...

$('#inputItemName').keyup();

Solution 4:

Try trigger function.

$('#inputItemName').trigger('keyup');

http://api.jquery.com/trigger/