SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Creating a a faux-form by using non-form HTML elements + javascript

    Ive seen a few jQuery plugins designed to pretty up select menus by hiding the select menu and overlaying an unordered list. Progressive enhancement aside, is it even necessary to have the select menu at all? Could you not access the selected values in a unordered list the same as you would a select menu in jQuery i.e. $('selector').val();

    I guess what I'm getting at is could you build a form-look-a-like, providing all the functionality of a form but using more css-friendly HTML elements like UL?

    I guess it wouldnt work for input type="file", but off the top of my head it sounds plausible for simple forms that you want to look great but current form elements don't suffice?

    Am I overlooking some major point here?

  2. #2
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most organizations require that forms be usable without script support.

    Also, you not only need to make a snazzy form field-
    you need to have a way to submit the user's selections with the form,
    using the same name and value fields that the original form uses-
    or you will have a heck of a job sorting it out on the server.

    Its best to start with an ordinary form, and enhance it, as supported, to your heart's content.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •