added jquery and only digits logic