Created
March 6, 2013 06:58
-
-
Save anonymous/5097290 to your computer and use it in GitHub Desktop.
This file contains 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
cur_frm.cscript.select_home = function(doc, cdt, cdn) { | |
if(doc.select_home == 1) | |
{ | |
doc.home_number.style.display = "block"; | |
} | |
else | |
{ | |
doc.home_number.style.display = "none"; | |
} | |
refresh_field('home_number'); | |
} | |
cur_frm.cscript.select_home; // i just tried to run this trigger but i dont know how to run | |
//this trigger from here.... | |
//i tried something like this as well | |
$('input[name="home_number"]').val(); // this returns me undefined , whereas if i go and | |
//execute this on console i get the value for this same command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment