Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHM-8098: update multiple edd elements on the same form #521

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cioan
Copy link
Member

@cioan cioan commented Aug 1, 2024

@mseaton and @lnball, if you insist on using multiple elements with the same ID, I found another jquery syntax that allows us to select multiple elements whose IDs start with the same string:
jq("div[id^=calculated-edd-and-gestational]").show();

Screenshot 2024-08-01 at 3 45 11 PM

@cioan cioan requested review from lnball and mseaton August 1, 2024 20:40
@@ -349,7 +349,7 @@
<span id="calculated-edd-label">
<uimessage code="pihcore.calculatedEstimatedDeliveryDate"/>:&#160;
</span><br/>
<span id='calculated-edd' class="calculated-edd value"></span>
<span id='calculated-edd-value' class="calculated-edd value"></span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't insist on using ids @cioan . If you are going to write code that simulates using classes, you might as well use them.

Copy link
Member

@lnball lnball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cioan .

Can you explain tomorrow how I should use this? Not sure why you changed these 3 htmlforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants