Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Removing "disabled"-cursor

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #166757
    papdronning
    Participant

    I have a MailChimp form on the frontpage anndalum.com

    When the “tilmeld”-button is pressed a “disabled”-cursor appears. It confuses people so I’d like it not to. It should just remain the regular cursor.

    I’m guessing it’s something with this:

    function mc_beforeForm(){
            // Disable the submit button
            $('#mc_signup_submit').attr("disabled","disabled");
        }
        function mc_success(data){
            // Re-enable the submit button
            $('#mc_signup_submit').removeAttr("disabled");
    

    But I don’t really understand js, so can anyone help me?

    #166759
    Alan C
    Participant

    Style.css line 1485

    input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] {
    background-color: #EEEEEE;
    cursor: not-allowed;
    }

    That cursor declaration is what changes it, but because the page refreshes or submits then the disabled=”disabled” on the button is removed. So you were correct in a sense.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.