Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a b c
- Name Name1 Name2
- Age Age1 Age2
- Location Location1 Location3
- filter = function(){
- input = $("#label").text().trim();
- document.getElementById("custGroup").style.display = 'none';
- document.getElementById("custRegional").style.display = 'none';
- document.getElementById("custCpf").style.display = 'none';
- if(input == "a"){
- input == "custGroup";
- } else if (input = "b"){
- input == "custRegional";
- } else {
- input == "custCpf";
- }
- input1 = input.text().trim();
- document.getElementById(input1).style.display = 'block';
- }
- filter();
- <div><SpotfireControl id="7561535df6814ba79bcb5d3e3f0947ba" /></div> <br>
- <span id="label" style="display: block;"><SpotfireControl id="64a6922459d24021bc7e9f55ca85b382" /> </span>
- <br></p>
- <p>
- <div id="custGroup" style="display: none;"><SpotfireControl id="f7a556d5edf4437f90077cacd6a3a860" /></div>
- <div id="custRegional" style="display: none;"><SpotfireControl id="3236b7fc32a845b182e50cee17decd2e" /></div>
- <div id="custCpf" style="display: block;"><SpotfireControl id="87f980bfaec44d69a6587cfb2ec43c14" /></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement