|
@@ -112,6 +112,20 @@ $( function(){
|
|
|
form.submit();
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $( "#symptomEtc" ).on( "change", function(){
|
|
|
+ var $this = $( this ).siblings( "div.label-readonly-check" );
|
|
|
+ console.log($this);
|
|
|
+ var checkbox = $this.find( "input[type='checkbox']" );
|
|
|
+ var textbox = $this.find( "input[type='text']" );
|
|
|
+
|
|
|
+ console.log( $( this ).is(":checked") );
|
|
|
+ if( !$( this ).is(":checked") ){
|
|
|
+ textbox.prop( "readonly", true ).val("");
|
|
|
+ } else {
|
|
|
+ textbox.prop( "readonly", false );
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
function basalCheck(){
|