Jquery Accessible Forms Code


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1.  
  2. $(document).ready(
  3. function()
  4. {
  5. if($.browser.mozilla)
  6. {
  7. $("form.cmxform").find("li > label").not(".nocmx").each(
  8. function(i)
  9. {
  10. span = document.createElement("span");
  11. $(span).css({ display: "block", width: $(this).css("width") });
  12. $(this).css("display","-moz-inline-box");
  13. $(span).html($(this).html());
  14. $(this).html("");
  15. $(this).append(span);
  16. }
  17. );
  18. }
  19. }
  20. );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.