title: Jquery datepicker: How to make it work properly?
body: <p>I'm trying to carry out a jsp page with some functionalities of Jquery. But, despite my efforts, there's no way to do it.</p>
  
  <p>I've downloaded jquery1.7.1 and jquery-ui1.8.17 (non-mini), and renamed it to jquery171.js and jquery-ui.js. They are in /js folder.</p>
  
  <p>There's a very simple jsp page below, which is not showing the DatePicker of jquery. I'm using jquery UI 1.7.1. There's no errors in the files, just several warnings, like variables never used and not initialized.</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
      &lt;link type="text/css" href="css/ui-lightness/jquery.css" rel="stylesheet" /&gt;
      &lt;script type="text/javascript" src="js/jquery.js"/&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jquery-ui.js"/&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;input type="text" id="tx" name="tx"/&gt;
      &lt;script type="text/javascript"&gt;
          $("tx").datepicker({dateFormat: 'dd/mm/yyyy'});
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But, when I run the stuff, nothing happens. Have you any idea of where should be the problem? If you have already configured jquery in your Eclipse, what other steps have you did? Thanks in advance.</p>