It's great. Thanks a lot.I try it today and it's worked for me.
Anyway, I want to edit in my code, If you can help me. I have a div with class "div" that contains the create list item button and I have a table in my code with class"table".
I want to make if statement for if the current user clicked the button before or not, so if he clicked on the button before, no need to insert a new item again. It should be inserted one time for each user.
If(currentuser was clicked before this button)
{ it should hide the div from the beggining and don't show him the div at all, so when he opens the page will see the table only
hide the div;
show the table;
}
If(currentuser doesn't clicked before this button) --> it should show him the div first, so when he click on the button,It will hide the div and will show the table
{
create listItem();
alert;
hide the div;
show the table;
}
How can I reach to this?