This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI().use('event', 'node', function(Y) { | |
Y.on('domready', cascadeFields); | |
function unhide(cl) { | |
Y.all('#mortgage_picker_form select.' + cl).setStyle('display', 'block'); | |
} | |
function hide(cl) { | |
Y.all('#mortgage_picker_form select.' + cl).setStyle('display', 'none'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI().use('event', 'node', function(Y) { | |
Y.on('domready', cascadeFields); | |
function unhide(cl) { | |
var nodes = Y.all('#mortgage_picker_form select.' + cl); | |
for (var i = 0; i < nodes._nodes.length; i++) { | |
nodes._nodes[i].style.display = "block"; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (document.addEventListener) { | |
document.addEventListener("DOMContentLoaded", cascadeFields, false); | |
} | |
document.getElementsByClassName = function(cl) { | |
var retnode = []; | |
var myclass = new RegExp('\\b'+cl+'\\b'); | |
var elem = this.getElementsByTagName('*'); | |
for (var i = 0; i < elem.length; i++) { | |
var classes = elem[i].className; |
NewerOlder