0

hi all,
i had a page where there are three text boxes.username,password,allocatedmemory. Now when i placed an invalid number in allocated memory after submit button click it wil display a popup as invalid.so after clicking ok button,i need the value present in allocated memory to be cleared and cursor should focus on it.
so can any one please...

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Manuz
0

i had done it but i didnt get the data of allocated memory cleared

Edited by niths: n/a

0

Hey,
You can use Java Script to achieve this.
1. On submit call a function
2. Check for your condition
3. If failed do this
document.getElementById("Id of memory text box").value = "";
document.getElementById("Id of memory text box").focus();

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.