Skip to content

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
<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