I am trying to populate day of date in a list of SObject using JavaScript.
I have written logic for getting day it works fine. Now I have to set Day. Page-block table Day column code is
<apex:pageBlockTable value="{!IndividualSessionrap}" var="ffs" title="PageBlock Tab">
<apex:column style="width:20px" headerValue="Sr No">
<apex:outputText value="{!ffs.session.Sr_No__c}"/>
</apex:column>
<apex:column style="width:250px" headerValue="Day">
<apex:outputText id="day" value="{!ffs.session.Session_Day__c}"/>
</apex:column>
<apex:column style="width:230px;" headerValue="Start Date/Time">
<apex:input id="dateField" onChange="populateDay('{!$Component.dateField}','{!$Component.day}');return false;" type="date" value="{!ffs.startDate}"/>
</apex:column>
JQuery for the code is
document.getElementById(DayId).value('Thursday');
This doesnt set the value for day.