_:n76a25c0a94bb48efb0e4b4cfedb9cce9xb1
<http://schema.org/text>
"\nWhat I am trying to do is get the user information that is entered into a text area, to display as a message depending on the degree someone has. So if I check the box for BA the cursor focuses on the BA text area and depending on what I enter: lets say :Science, the message will display as firstName + \"You have the following degrees:BA in Science.\" or if I check the MA check box and the cursor .focus(es) on the MA text area and I enter Business then it will display as \" firstName + \"You have the following degrees:MA in Business.\" etc. Any help is appreciated.HTML CODE:&lt;div id=\"mycbxs\"&gt;\n        &lt;br&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;\n        &lt;br&gt;&lt;input type=\"checkbox\" id=\"BAcbx\" value=\"B\"&gt; BA\n        &lt;br&gt;&lt;input type=\"checkbox\" id=\"MAcbx\" value=\"M\"&gt; MA\n        &lt;br&gt;&lt;input type=\"checkbox\" id=\"PHDcbx\" value=\"P\"&gt; PHD\n    &lt;/div&gt;\n\n    &lt;div id=\"myinputs\"&gt;\n        &lt;br&gt;&lt;strong&gt;Discipline&lt;/strong&gt;\n        &lt;br&gt;&lt;input type=\"text\" id=\"BAText\" size=\"30\"&gt;\n        &lt;br&gt;&lt;input type=\"text\" id=\"MAText\" size=\"30\"&gt;\n        &lt;br&gt;&lt;input type=\"text\" id=\"PHDText\"  size=\"30\"&gt;\n\n        &lt;br&gt;&lt;br&gt;\n        &lt;input type=\"button\" id=\"myclick\" value=\"Submit Degree Info\"&gt;\n        &lt;br&gt;\n        &lt;p id=\"message\"&gt;&lt;/p&gt;\n    &lt;/div&gt;\njQuery CODE:      $(document).ready(function(){\n\n $(\"#myclick\").click(function(){\n\n     var myFirst = $(\"#first_name\").val().trim();\n     $(\"#first_name\").val(myFirst);\n\n     var myMessage = myFirst + \".\" + \" You have yet to earn any degrees.\";\n\n     if(!myFirst)\n     {\n     $(\"#message\").text() = \"\";\n     }\n     else\n     {\n       $(\"#message\").text(myMessage);\n     } \n\n });\n\n\n $(\"input[type='checkbox']\").click(function(){\n\n  var radioButtonsChecked = $(\"#mycbxs input[type ='checkbox']:checked\").val();\n\n   $(\"#myinputs input[type ='text']\").val();\n\n  if(radioButtonsChecked == \"B\") \n   { \n    $(\"#BAText\").focus(); \n   } \n   if(radioButtonsChecked == \"M\") \n   { \n    $(\"#MAText\").focus(); \n   } \n   if(radioButtonsChecked == \"P\") \n   { \n    $(\"#PHDText\").focus(); \n   }\n });\n\n\n\n\n $(\"#myclick\").click(function(){\n\n     var myFirst = $(\"#first_name\").val().trim();\n     $(\"#first_name\").val(myFirst);\n\n    $(\"#myinputs input[type ='text']\").val();\n\n\n     var myDegree = '';\n\n     var radioButtonsChecked = $(\"#mycbxs input[type ='checkbox']:checked\").val();\n\n     var myMessage = myFirst + \".\" + \" You have yet to earn any degrees.\";\n\n     if(!myFirst)\n     {\n     $(\"#message\").text() = \"\";\n     }\n     else\n     {\n       $(\"#message\").text(myMessage);\n     } \n\n\n    if(radioButtonsChecked  == \"B\") \n    {\n        myDegree = $(\"#BAText\").val();\n    }\n\n    if(radioButtonsChecked  == \"M\") \n    {\n        myDegree = $(\"#MAText\").val();\n    }\n\n    if(radioButtonsChecked  == \"P\") \n    {\n        myDegree = $(\"#PHDText\").val();\n    }\n\n    var myMsg = myFirst + \" You have the following degrees:\" + \"&lt;br&gt;\" + \"&lt;br&gt;\" + myDegree;\n\n    $(\"#message\").html(myMsg);\n});\n\n\n});\n\n"
<https://www.edureka.co/community/198856/getting-the-text-check-box-and-text-area-display-using-jquery>