I am trying to get the value of ID but its showing null link https://codepen.io/rahulv/pen/zwjrXZ
function printCurrentTab(){
var content = "";
var activeTab = document.getElementById('activeDisTab').value;
getting error here in var activeTab
I am trying to get the value of ID but its showing null link https://codepen.io/rahulv/pen/zwjrXZ
function printCurrentTab(){
var content = "";
var activeTab = document.getElementById('activeDisTab').value;
getting error here in var activeTab
Juste replace jQuery part with plain JavaScript
Instead of this content += $('#' + activeTab).html();
Use this content += document.getElementById('activeDisTab').value;