Sanjay gautam

Sanjay gautam

  • NA
  • 90
  • 14.2k

I Have Some Code But Its Not Working Please Help Me

Dec 3 2019 5:32 AM
  1. function create() {  
  2.        var hdrwdth = 0;  
  3.        var t = '';  
  4.        t += "<div class='topnav'><div class='title'>titleText</div></div>";  
  5.        $('#div1').append(t);  
  6.        }  
  1. <div id="div1"></div>  
  1. .topnav {  
  2.     background-color: dodgerblue;  
  3.     width100%;  
  4.     height30px;  
  5.     
  6.     z-index1000;  
  7.     positionrelative;  
  8.     border1px solid #CCCCCC;  
  9. }  

Answers (4)