www.webdeveloper.com
Results 1 to 3 of 3

Thread: variable id attribute

  1. #1
    Join Date
    Jul 2010
    Posts
    11

    variable id attribute

    Hi,

    I am displaying the entries from the database on my JSP page. As many there are entries, using <logic:iterate> I am showing the values.

    My problem is, only the first datepicker is shown. None of the remaining are shown when clicked on text area.

    Code:
    <logic:notEmpty name="specialResult" scope="request">
    <logic:iterate name="specialResult" id="specialResult" indexId="index">
    <tr>
          <input type="checkbox" name="upisActive" property="upisActive" value="<bean:write name="specialResult" property="upId"/>"></input>
          <input type="text" name="upholidayDate" value="<bean:write name="specialResult" property="upholidayDate"/>" property="upholidayDate" size="20" id="datepicker"></input>
    </tr>
     
    <
    SCRIPT type=text/javascript> 
    $(function() {
    $("#datepicker").datepicker();
    });
    </SCRIPT>

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    You might take a look at this thread: http://www.theserverside.com/discuss...hread_id=24617
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  3. #3
    Join Date
    Jul 2010
    Posts
    11
    That did not help... any more help please.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles