Advertisement
Guest User

Untitled

a guest
Dec 7th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. function updateEstimatedDeathdate() {
  2. var input = document.getElementById("deathdateEstimatedInput");
  3. if (input) {
  4. input.checked = true;
  5. input.parentNode.className = "";
  6. }
  7. else
  8. input.parentNode.className = "listItemChecked";
  9. }
  10.  
  11.  
  12. <openmrs:message code="Person.deathdateEstimated"/>
  13. <spring:bind path="patient.deathdateEstimated">
  14.  
  15. <%--<input type="text" name="causeOfDeath" value="${status.value}" id="causeOfDeath"/>--%>
  16. <input type="checkbox" name="${status.expression}" value="false"
  17. <c:if test="${status.value == true}">checked</c:if>
  18. id="deathdateEstimatedInput"
  19. onclick="if (this.checked) updateEstimatedDeathdate()" />
  20. <c:if test="${status.errorMessage != ''}"><span class="error">${status.errorMessage}</span></c:if>
  21. </spring:bind>
  22. &nbsp;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement