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();
You have to use double inverted comma for conacatination beacause you use double inverted comma for selector.
Try this jquery code:
$("li:gt("+item+"):lt(1)").show();