function showPostWall(){ document.getElementById('postWall').style.display = 'inline'; } function hidePostWall(){ document.getElementById('postWall').style.display = 'none'; } $(document).ready(function(){ $('#postType').change(function() { var e = document.getElementById('postType'); var type = e.options[e.selectedIndex].value; if(type == 1){ document.getElementById('product').style.display = 'inline'; document.getElementById('artwork').style.display = 'none'; document.getElementById('timeline').style.display = 'none'; }else if(type == 2){ document.getElementById('product').style.display = 'none'; document.getElementById('artwork').style.display = 'inline'; document.getElementById('timeline').style.display = 'none'; }else if(type == 3){ document.getElementById('product').style.display = 'none'; document.getElementById('artwork').style.display = 'none'; document.getElementById('timeline').style.display = 'inline'; } }); }); var list; function addSizeStock(){ var sizeSubmited = document.getElementById('size').value; var stockSubmited = document.getElementById('stock').value; var checkBox = '
'; if(list == null){ list = checkBox; }else{ list = list+checkBox; } document.getElementById('stockList').innerHTML = list; } function addArtStock(){ var sizeSubmited = document.getElementById('asize').value; var stockSubmited = document.getElementById('astock').value; var checkBox = '
'; if(list == null){ list = checkBox; }else{ list = list+checkBox; } document.getElementById('astockList').innerHTML = list; } $(document).ready(function(){ $('#item').change(function() { document.getElementById('varInfo').style.display = 'inline'; }); });