title: How to add and use jquery and css file in joomla module..?
body: <pre><code>$document = &amp;JFactory::getDocument();//getting document ref object
  $document-&gt;addScript(JURI::root() . 'modules/mod_my_slider/jquery.js');
  
  $path = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."modules/mod_my_slider/images";
  $path = str_replace("index.php","",$path);
  ?&gt;
  &lt;script language="javascript"&gt;
    jQuery('#block').show();
   &lt;/script&gt;
   &lt;center&gt;
   &lt;div height:220px; width:500px; border:1px solid black;&gt;
    &lt;img class="slide" height="220px" width="500px" src="&lt;?php echo $path; ?&gt;/pier1.jpg"/&gt;
   &lt;/div&gt;
   &lt;div id="block" style="height:100px; width:10px; display:none; background-color:white;"&gt;BETA&lt;/div&gt;
   &lt;/center&gt;
  ?&gt;
  </code></pre>
  
  <p>I try like above,i also include file of jquery but that line not display.</p>