Hi Maryna, thanks for response
But I'm still looking how to clean these labels with text string values added dynamically through a database query service?.. as is shown in the picture below.
I have tried this, but it doesn't work:
pre
1. Appery("txtName").val(""); Appery("txtName").hide();
2. Appery("txtName").text("")
/pre
the only way that I found is applying this function:
pre
function clearLabels()
{
window.location.reload();
}
clearLabels();
/pre
but I think it is not the best way.
Well... maybe I should give a little explanation about context.
The first screen is an input field with a search button ...the basic condition are ..if user introduces a wrong data... the system says "No records with this folio" or even if user does not enter any data and click the search button ..the system says "Missing data" ....But if the system got some results then it displays them through these labels... At this stage everything goes well ...The trouble is ...if you try a second time ..and introduces a new wrong data o new empty search ...the error messages appears just below the list created with the last database query.... the old list disappears just if the system finds new results ...obviously ..because presents the new information.
That's why I'm trying to find a best way to clear these labels if search button is clicked more than once