0

Hi there, I wrote code that reset search settings, code is:

function formReset()
{
    var fields = document.getElementsByTagName( "input" );  

    for ( i = 0; i < fields.length; i++ )
    {
        if ( fields[ i ].type == "checkbox" )
            fields[ i ].checked = false;
    }

    document.getElementById( 'rrpmin' ).selectedIndex = 0;
    document.getElementById( 'rrpmax' ).selectedIndex = 0;


    eraseCookie( _cookieName );

    fieldClick();
}

but what I need to change is after reset set up rrpmax as 3000, not 0. any idea how to do it?

Thanks for any hints

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by peter_budo
0

hi lemur,
Try post this question in javascript forum you will get many replies

0

You are right. Sorry, I posted this here in mistake, unfortunately there is no option to delete this post.

0

In the future you should click on "Flag Bad Post" and leave message such as "Please move it to XYZ section" and first admin/moderator seeing it will take care of it.
Given that you already made new post in JavaScript section you should mark this post as solved

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.