Home

look at me

ws:eventlist

Log in to see this information

Either the content you're seeking doesn't exist or it requires proper authentication before viewing.

Common

Tue March 20, 2018 08:21 AM Libraries
Colors

FrEe IpAd!!!!

Registration
Registrant Name / Email
\


Change Selected Community Email Subscription Radio Buttons

<script>
    document.onreadystatechange = function() {
        if (document.readyState == "interactive") {
            getInputsByValue("Rt", "Dd");
        }
    }
    function getInputsByValue(value1, value2) {
        var allInputs = document.getElementsByTagName("input");
        for (var x = 0; x < allInputs.length; x++) {
            if (allInputs[x].value == value1) {
                var att = document.createAttribute("checked");
                att.value = "checked";
                allInputs[x].setAttributeNode(att);
            }else if(allInputs[x].value == value2){
                allInputs[x].removeAttribute("checked");
            }
        }
    }
</script>


The key is in this line:
 getInputsByValue("Rt", "Dd"); - the second value is what the radio button currently has, and the first value is the radio button you would like to be selected instead. 

Here is a list of the radio button values:
Rt = "Real Time"
Dd = "Daily Digest"
Bb = "Plain text"
Ne = "I would like to opt-out"


- Lieutenant Dan

Common Latest Discussions

Common Search Results

Raymond

Log in to see this information

Either the content you're seeking doesn't exist or it requires proper authentication before viewing.

Welcome

REEEEd

Results Test

  • No data found
  • WSDiscussions

    Log in to see this information

    Either the content you're seeking doesn't exist or it requires proper authentication before viewing.

    Latest Discussions

    There are no discussions to which you have access

    Either the content you're seeking doesn't exist or it requires proper authentication before viewing.

    Recent Blogs

    No Data Found

    Either the content you're seeking doesn't exist or it requires proper authentication before viewing.

    Announcements

    Log in to see this information

    Either the content you're seeking doesn't exist or it requires proper authentication before viewing.

    Recent Shared Files

    latest resources?

    No Data Found

    Search Results

  • No data found
  • LB

    President, Member
    Self-employed
    President, Co-Chair