Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

fleegix.form.restore not working for all form elements #1

Open
timconstan opened this Issue Dec 4, 2010 · 0 comments

Comments

Projects
None yet
1 participant

Hello,

I was testing fleegix.form.restore at http://djfs.co.seneca.oh.us/mobile/

Here's the data from fleegix.form.serialize:

name=text%20input%20here&password=password%20here&textarea=text%20area%20here&search=search%20input%20here&slider2=on&slider=30&checkbox-1a=on&checkbox-2a=on&checkbox-3a=on&checkbox-6=on&checkbox-7=on&radio-choice-1=choice-2&radio-choice-b=other&select-choice-1=overnight&select-choice-3=OH

These form elements don't seem to be getting their data reset through fleegix.form.restore:

Choose as many snacks as you'd like:
            <input type="checkbox" name="checkbox-1a" id="checkbox-1a" class="custom" />
            <label for="checkbox-1a">Cheetos</label>

            <input type="checkbox" name="checkbox-2a" id="checkbox-2a" class="custom" />
            <label for="checkbox-2a">Doritos</label>
            
            <input type="checkbox" name="checkbox-3a" id="checkbox-3a" class="custom" />
            <label for="checkbox-3a">Fritos</label>

            <input type="checkbox" name="checkbox-4a" id="checkbox-4a" class="custom" />
            <label for="checkbox-4a">Sun Chips</label>
        </fieldset>
        </div>
        <div data-role="fieldcontain">
        <fieldset data-role="controlgroup" data-type="horizontal">
            <legend>Font styling:</legend>
            <input type="checkbox" name="checkbox-6" id="checkbox-6" class="custom" />

            <label for="checkbox-6">b</label>

            <input type="checkbox" name="checkbox-7" id="checkbox-7" class="custom" />
            <label for="checkbox-7"><em>i</em></label>

            <input type="checkbox" name="checkbox-8" id="checkbox-8" class="custom" />
            <label for="checkbox-8">u</label>    
        </fieldset>
        </div>


        <div data-role="fieldcontain">
            <fieldset data-role="controlgroup">
                <legend>Choose a pet:</legend>
                    <input type="radio" name="radio-choice-1" id="radio-choice-1" value="choice-1" checked="checked" />
                    <label for="radio-choice-1">Cat</label>

                    <input type="radio" name="radio-choice-1" id="radio-choice-2" value="choice-2"  />
                    <label for="radio-choice-2">Dog</label>

                    <input type="radio" name="radio-choice-1" id="radio-choice-3" value="choice-3"  />
                    <label for="radio-choice-3">Hampster</label>

                    <input type="radio" name="radio-choice-1" id="radio-choice-4" value="choice-4"  />
                    <label for="radio-choice-4">Lizard</label>
            </fieldset>
        </div>

        <div data-role="fieldcontain">

            <fieldset data-role="controlgroup" data-type="horizontal">
                <legend>Layout view:</legend>
                    <input type="radio" name="radio-choice-b" id="radio-choice-c" value="on" checked="checked" />
                    <label for="radio-choice-c">List</label>
                    <input type="radio" name="radio-choice-b" id="radio-choice-d" value="off" />
                    <label for="radio-choice-d">Grid</label>
                    <input type="radio" name="radio-choice-b" id="radio-choice-e" value="other" />

                    <label for="radio-choice-e">Gallery</label>
            </fieldset>
        </div>

        <div data-role="fieldcontain">
            <label for="select-choice-1" class="select">Choose shipping method:</label>
            <select name="select-choice-1" id="select-choice-1">
                <option value="standard">Standard: 7 day</option>

                <option value="rush">Rush: 3 days</option>
                <option value="express">Express: next day</option>
                <option value="overnight">Overnight</option>
            </select>
        </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment