Open modal on hidden field change its value

I want to open a modal when a hidden field change its value with a JS functions.

I have tried few stuff without success.

<input type="hidden" id="post-change" value="" name="posText" dmx-on:input="modalBycom.show()">

<input type="text" id="post-change" value="" name="posText" dmx-on:change="modalBycom.show()">

Any idea??

Hey

The update event don’t work for you?

<body is="dmx-app" id="hidden_change">
<div class="modal" id="modal1" is="dmx-bs5-modal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Modal title</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <p>Modal body text goes here.</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div>
    </div>
</div>
<div class="container">
    <input id="text1" name="hiddenfield" type="hidden" class="form-control" dmx-on:updated="modal1.show()">
</div>
<script src="../bootstrap/5/js/bootstrap.bundle.min.js"></script>