Moved to Javascript forum for better response.
Code:
if( valueEnter > 3 && valueEnter < 12 )
{
    Do something
}