jquery dynamic line type table changing