Question

4
Replies
544
Views
Anoop Member since 2013 5 posts
empower retirement
Posted: 5 years ago
Last activity: 4 years 11 months ago
Closed

Problem in Accessing HTML ID element from JAVASCRIPT

For Calendar ,  we are unable to access the value of the Calender elements from javascript

Example

--------

HTML code

---------------

  <td width="25%" NOWRAP style="text-align:left" class="dataLabelStyle">Request Date<font style="padding-left: 5px; color: red;font-weight: bold;">*</font></td>

         <td width="50%" style="padding-left: 5px" >

   {ScanDate input Date-Calendar}

  </td>

We are Unable to access the element ScanDate from JavaScript by using document.getElementById(ScanDate).

As a temporary solution we are using the following method

-----

Right Click on the element at run time-->View Source and we are taking ID at the run time ID.

eg::

document.getElementById("cal$PpyPortal$pScanDateField").value;

Low-Code App Development Upgrades
Moderation Team has archived post
Share this page LinkedIn