Ankita Singh

Ankita Singh

  • NA
  • 159
  • 19.3k

onchange event for dropdownlist

Feb 24 2018 5:31 AM
<script type="text/javascript">
function TextChange() {
debugger
var values = $(document.getElementById('#MainContentcourse')).val();
{
if (values = 'B.Tech[PCB Group]') {
$('#divtenper').show();
$('#divyear10').show();
$('#divpertwelth').show();
$('#divyearof12').show();
$('#divgraper').hide();
$('#divyearofgra').hide();
}
var values = $(document.getElementById('#MainContentcourse')).val();
 
i got undefined value

Answers (4)