Jump to content

according to user


shir11

Recommended Posts

thank you!I wrote that code:1. <script type="text/javascript">2. $(document).ready(function () {3. $("#submit").on("click", function () {4. if (sessionStorage.clickcount) {5. sessionStorage.clickcount = Number(sessionStorage.clickcount) + 1;when I click on the button and debug - I reached to line no. 4 and that's it.why if (sessionStorage.clickcount) always false?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...