Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2012
    Thanked 0 Times in 0 Posts

    Javascript random function - help

    ***I need to randomise the order of some questions that are in this format. Any ideas? Thank you!***



    <form name="form4" method="post" action="">

    <h3><p>First One</p></h3>

    <label><input type="radio" name="q4" id="w1" value="1" </label>
    <label><input type="radio" name="q4" id="w2" value="2" </label>
    <label><input type="radio" name="q4" id="w3" value="2" </label>


    Last edited by Javalava; 05-01-2012 at 03:47 AM.

  2. #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Thanked 4,947 Times in 4,908 Posts
    Well, pesonally I would do this via server-side code (PHP/ASP/JSP), since presumably you will be checking the answers via server-side code.

    But, yes, it can be done vis JavaScript. Just not as conveniently.
    Be yourself. No one else is as qualified.


Posting Permissions

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