Oh sorry about the comment. It was wrong.
if (setState == HIGH) // if the state has changed, move the cursor to next input
{
lcd.setCursor(5,0);
lcd.noBlink();
lcd.setCursor(15,0);
lcd.blink();
}
So how should I change the above code to make sure that the cursor indeed switches to the next input..I am stuck here and can't move. Hope you can help me out