Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ Tab Problem

Posted by: Enhanced Software Solutions Apr 24 2012, 08:55 AM

Hi ,

I have developed one form such that if user selects Confirm he will be redirected to Confirm and if he select Personal he will be re directed be to Personal Page.
My Problem is that Personal Contains some fields . So i am using tab for navigating between fields so when i ever use tab in Personal i am redirected to Save.
Please guide me where i am doing wrong.

Thanks in Advance

I am enclosing my page and css


Attached File(s)
Attached File  New_Folder.zip ( 5.87k ) Number of downloads: 121

Posted by: Enhanced Software Solutions Apr 25 2012, 01:08 AM

Hi All,

My Problem have been resolved . The Changes i have been made is

in .js file

i removed the following code

CODE


$('#formElem > fieldset').each(function(){
        var $fieldset = $(this);
        $fieldset.children(':last').find(':input').keydown(function(e){
            if (e.which == 9){
                $('#navigation li:nth-child(' + (parseInt(current)+1) + ') a').click();
                /* force the blur for validation */
                $(this).blur();
                e.preventDefault();
            }
        });
    });


Here 9 is the ASCII CODE for horizontal tab
13 is the ASCII CODE for vertical tab

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)