Hello!
I was looking through previous forum posts about this topic but couldn't find anything that really helped me, so here we go. I'm brand new to programming, and especially new to jQuery mobile.
Upon the click of a button, I open a popup that contains a form. I type in a word, click submit, and it appends this word to a list displayed on the same page. The problem is this... I add TWO separate words (two different submits), and then the page refreshes and the words are gone (haven't gotten to storing these words yet) but the refresh is an issue, and then I can no longer click the button to trigger the popup, nothing happens upon click. I have to restart the application for it to work again. This happens after the second word input every time, without fail.
And here's MY code...
- <div data-role="collapsible">
- <h3>Words</h3>
- <a href="#popupWord" data-rel="popup" data-position-to="window" data-transition="pop" id="link-words">
- <button id="goto-words" data-icon="edit">Add a Word...</button></a>
- <div data-role="popup" id="popupWord" class="ui-corner-all" data-overlay-theme="a">
- <form>
- <div style="padding:10px 20px;">
- <h3>Add a Word...</h3>
- <input type="text" name="enter-word" id="new-word" value="" placeholder="Enter a Word...">
- <button type="submit" id="submit" class="ui-btn ui-corner-all ui-shadow ui-btn-b ui-btn-icon-left ui-icon-check">Add!</button>
- </div>
- </form>
- </div>
- <ul id="words" data-filter="true">
-
-
- </ul>
- </div>
If you need anymore information, let me know. Thank you in advance!