code_junkie

Why does the checkbox stay checked when reloading the page?

Nov 12th, 2011
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <label for="showimage">Show Image</label>
  2. <input id="showimage" name="showimage" type="checkbox" value="1" />
  3.  
  4. <label for="showimage">Show Image</label>
  5. <input id="showimage" name="showimage" type="checkbox" />
  6.  
  7. Cache-Control: no-store
  8.  
  9. $(":checkbox").attr("autocomplete", "off");
  10.  
  11. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  12. <META HTTP-EQUIV="Expires" CONTENT="-1">
Add Comment
Please, Sign In to add comment