any disadvantage on setting form value through jQuery
<p>I have form with lot of elements, most are select box, check box, radio . for example below selectbox <code>chart[type]</code> I am setting it value through php </p>

<pre><code>&lt;select name="chart[type]" id="chart_type" &gt;                         
       &lt;option value="nps" &lt;?php if ( $chart_data['chart']['type'] == 'nps' ) echo ' select="selected" '; ?&gt; &gt;NPS Barchart&lt;/option&gt;
       &lt;option value="score" &lt;?php if ( $chart_data['chart']['type'] == 'score' ) echo ' select="selected" '; ?&gt;&gt;Number/score&lt;/option&gt;
       &lt;option value="top5" &lt;?php if ( $chart_data['chart']['type'] == 'top5' ) echo ' select="selected" '; ?&gt;&gt;Top 5&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I tried a code to set from value using jQuery </p>

<pre><code>&lt;select name="chart[type]" id="chart_type" &gt;                         
    &lt;option value="nps" &gt;NPS Barchart&lt;/option&gt;
    &lt;option value="score"&gt;Number/score&lt;/option&gt;
    &lt;option value="top5"&gt;Top 5&lt;/option&gt;
&lt;/select&gt;

&lt;script&gt;
    $(function(){
            $('[name="chart[type]"]').val( 
                 '&lt;?php echo  $chart_data['chart']['type']; ?&gt;'
            );
    });
&lt;/script&gt;
</code></pre>

<p>I feel code is much cleaner . I am planning to change all forms code refill to this way . I would like to know any disadvantage of using second ? .. my application is for chart rendering it will not work, if JavaScript is disabled !</p>
