Activate the button in Internet Explorer 6 using Javascript

I'm facing an issue with my change password screen. It seems to work fine in IE8 and IE7, but the save button fails to enable in IE6 when the passwords match.

        var LblError = document.getElementById('ctl00_cphValNet_LblError');
        var Pwd1 = document.getElementById('ctl00_cphValNet_txtNewPassword')

        var Pwd2 = document.getElementById('ctl00_cphValNet_txtNewPassword2')

        var Change = document.getElementById('ctl00_cphValNet_BtnUpdatePassword')
        // code to check if password matches
        Change.disabled = false;

Any insights on why this discrepancy is occurring?

Sp

Could it be related to the RegEx usage causing the trouble?

function IsalphaNumericValidate(alphanumericChar) {
        if (alphanumericChar.length < 6 || alphanumericChar.search(/[^a-zA-Z0-9 ]/g) != -1) {
            return false;
        }
        else {
            var re = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/;
            return re.test(alphanumericChar);

        }           
    }

Answer №1

in place of

Toggle.enabled = true;

experiment with

Toggle.removeAttribute('disabled');

example

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Preventing access to drives and desktop until the mandatory HTML form is completed

Looking to develop a webpage in JSP that will automatically open whenever my system is started. Users will be required to fill out a form on this page before proceeding further. If they attempt to bypass filling out the form, they should not have access ...

Conceal the DIV upon selecting an option

I have 2 dropdown selects. If the user submits the form without selecting any option, a message is displayed in a DIV. Is there a way to make the div disappear when the user selects a value? SCRIPT: $(document).ready(function () { $("#go").clic ...

Encountering issues while attempting to inject code into Microsoft Teams

Attempting to inject some JavaScript into Microsoft Teams using node integration. Success was achieved by adding an "app" folder with "package.json" and "index.js" into the "resources" folder of the Teams installatio ...

"Maximizing Heroku's Potential: Merging Node.js and Java Buildpacks for

Our project consists of an HTML5/JavaScript frontend that interacts with a Java backend through REST. The JavaScript component is built on top of Backbone.js rather than Node.js. Currently, the application is combined into one and deployed on Heroku using ...

Combining two objects in AngularJS to create a new merged object

Is there a way to merge object1 and object2 into object3, updating values corresponding to matching keys while ignoring unmatching keys? var object1 = { "pii" : "val1", "loc" : "val2" } var object2 = { "rrb" : "val3", "voc" : "val4" } var obje ...

What could be causing the resolve method to not send any data back to the controller?

While following a tutorial on YouTube, I encountered an issue with incorporating the resolve method getposts into the contactController. Despite my efforts, no value is being returned. I've spent hours searching for answers on Stack Overflow to no av ...

Explaining the implementation of JQuery's onload event and its impact on reducing dependencies

Contained within a table is some data https://i.stack.imgur.com/gQyJQ.png Upon clicking the edit button, I am able to modify the information in that specific row. The Menu Category and Menu are populated through Dependent dropdowns. https://i.stack.imgur ...

Remove Chosen Pictures (Checkbox/PHP/MySQL)

I am currently displaying images from a Database using the following HTML code: <li> <input type="checkbox" id="1" /> <a rel="gallery_group" href="images/big/1.jpg" title="Image 1"> <img src="images/small/1.jpg" alt="" ...

Scrollbar becomes inactive following the loading of AJAX content

Having an issue with loading a div using Ajax. The div loads, however the scrollbar within it stops working afterwards. In Main.html, I load content from other HTML files like so: <div id="content1" > </div> The content is loaded as follows: ...

What causes the transformation of [{"value":"tag1"} into [object Object] when it is logged?

Currently on my node.js server, the code I'm using is as follows: var tags = [{"value":"tag1"},{"value":"tag2"}]; console.log("tags: " + tags); My expectation was to see this in the console: tags: [{"value":"tag1"},{"value":"tag2"}] However, what ...

What is the reason behind including a data string filled with a series of numbers accompanied by dashes in this ajax request?

I stumbled upon a website filled with engaging JavaScript games and was intrigued by how it saves high scores. The code snippet in question caught my attention: (new Request({ url: window.location.toString().split("#")[0], data: { ...

I'm considering incorporating the "react-picky" third-party library for a filterable multiselect component in React Material UI, but it seems to deviate from the principles of Material Design

https://i.sstatic.net/dxpJO.pngInterested in using the third-party library "react-picky" for a filterable multiselect component with React Material UI, but finding that it doesn't align well with Material Design styles. Is there a way to style any th ...

Converting the AppDelegate.m file to AppDelegate.mm and updating the AppDelegate.h file during the transition from React Native 0.66.4 to 0.71.3

Original code in AppDelegate.h: #import <React/RCTBridgeDelegate.h> #import <UIKit/UIKit.h> #import <UserNotifications/UserNotifications.h> @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificat ...

Guidelines for crafting an intricate selector by utilizing mergeStyleSets and referencing a specific class

I'm currently in the process of developing a web application using ReactJS. In my project, I have the following code: const MyComponent = (props: { array: Array<Data> }) => { const styles = mergeStyleSets({ container: { ...

The result shows me [object Object]

I'm struggling to find the solution to my issue - the output I am getting is incorrect and I can't pinpoint what's wrong. It's possible that some part of the code is missing, but as a learner, I'm not entirely sure. My goal is to ...

Arrange items in a particular order

I need help sorting the object below by name. The desired order is 1)balloon 2)term 3)instalment. loanAdjustmentList = [ { "description": "Restructure Option", "name": "instalment", " ...

Inserting additional information and assigning a category following a prosperous AJAX request accompanied by output from php echo

I'm currently working on implementing an AJAX call to my PHP file to send an email once a contact form is submitted. Initially, I had everything functioning properly where the response from PHP was displayed in a div above the form. However, I wanted ...

What is the solution to resolving the warning about the router no longer defaulting the history prop to hash history?

I have implemented browser history in my code within routes.js export default ( <Router history={browserHistory}> <Route path="/" component={Main}> <Route path="home/:username" component={Home}> <IndexRoute co ...

Filter kendo grid by selecting multiple options from a drop-down menu in the mult

I am working with a kendo grid and an HTML drop down. When I set the drop down to single select, I can successfully filter the kendo grid based on the selected item's string value. Below is the filtering code that works for single select: $("#Locati ...

Sorting through arrays in JavaScript/React

My search functionality works well, but I'm facing an issue when the item is not found in the array. I attempted using objects.Keys to handle this situation, but it's displaying on render instead of when the book is not found as expected. Should ...