i want to keep the previous contents of a particular textbox in a array and want to match the current input of the textbox with the elements in the array.Please help me out with the code.I want to keep the code in a .js file.

Define "prevous contents". Is this after a form submission? You're probably looking at using cookies and/or sessions. Please give whatever code you have.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.