Skip to content

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

Open
cioan wants to merge 1 commit into
masterfrom
UHM-8098-2
Open

UHM-8098: update multiple edd elements on the same form#521
cioan wants to merge 1 commit into
masterfrom
UHM-8098-2

Conversation

@cioan

@cioan cioan commented Aug 1, 2024

Copy link
Copy Markdown
Member

@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
<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
Copy Markdown
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.

@lnball lnball left a comment

Copy link
Copy Markdown
Member

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