title: change div size using javascript
body: <p>i have done something like that;</p>
  
  <pre><code>    &lt;div id="bloc2" onDblClick="document.getElementById('bloc2').style.height = 200px" style="width: 350px; height: 150px; overflow: auto; border: 1px solid #000;background-color:#F2F2F2"&gt;
  Uncaught SyntaxError: Unexpected token ILLEGAL
  </code></pre>
  
  <p>but it doesn not work
  the div is generated using php, here is my code:</p>
  
  <pre><code>&lt;?php 
  $sql = "SELECT * FROM commentaire where n_doss='".mysql_real_escape_string($_GET['n_doss'])."' ORDER BY date DESC LIMIT 0,5";
  $result = mysql_query($sql) or die(__LINE__.mysql_error().$sql); 
  ?&gt;
      &lt;?php
       $r=0;
       while($donnees2 = mysql_fetch_assoc($result)) {
        ?&gt;
        &lt;table cellspacing="10" cellpadding="10"&gt;
          &lt;tr&gt;
             &lt;td width="128px"&gt;
             &lt;?php if ($donnees2['etat']=="VR") {?&gt;
                  &lt;img src="images/wallet.png" /&gt;
             &lt;?php } else {?&gt;
                  &lt;img src="images/newsletter.png" width="128" height="128" /&gt;
             &lt;?php } ?&gt;
             &lt;/td&gt;
             &lt;td&gt;
               &lt;div id="bloc&lt;?php echo ++$r ;?&gt;"                  
                    onDblClick="document.getElementById('bloc&lt;?php echo $r ;?&gt;').style.height = 200px" 
                    style="width: 350px; height: 150px; overflow: auto; border: 1px solid #000;background-color:#F2F2F2"&gt;
                  &lt;?php echo mb_strtoupper(html_entity_decode($donnees2['commentaire'])) ; ?&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>but nothing works, except mistakes in the console.</p>
  
  <p>Kind regards.</p>