R/check_other.R

Defines functions check_other

Documented in check_other

##' @title Conditional "other" text input display

##' @return A string vector
##' @author Shir Dekel
##' @export
check_other <- function() {
    c("function checkOther(val, id){
 var element=document.getElementById(id);
 if(val=='Other')
   element.style.display='block';
 else
   element.style.display='none';
}")
}
shirdekel/shirthesis documentation built on Dec. 23, 2021, 1:24 a.m.