I have a list set with display:none and some code to show item 3:
display:none
HTML:
item 1 item 2&
You need to delimit the string with the correct quotes. Try this:
$("li:gt(" + item + "):lt(1)").show();