Using jQuery in a JavaScript function
<pre><code>function divlightbox(val)
{
    if(val)
    {
        val=val.replace( /^\s+/g, "" );
        var count_js=0;
        var big_string='';
        document.getElementById("video_lightbox").innerHTML="";
        document.getElementById("divlightbox").style.display = "block";
        $("#video_lightbox").css({"height":"430px","top":"10%","width":"480px"});
</code></pre>

<p>I found out that the error is in the above. My question is <strong>can't I use jQuery and traditional JavaScript at same time?</strong> I have done coding like this numerous times and never ran into a problem like this. I used to use jQuery methods like <code>.hide()</code> and <code>.css()</code> inside JavaScript functions but this time it doesn't work. </p>

<p>Thanks in advance.</p>
