Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
x-modal in alpine js is not working in select

I'm using alpine JS. In alpine for change actions, we can use x-modal which will bind the selected value. But when I am using select with x-modal the value is not updated to the variable. Though I am copying the code from the doc and pasting it into my project.

 <select name="limitOptions"  x-model="limitValue" data-action="change->table#onLimitChange" >
              <template x-for="(limit, index) in field.limit" :key="index" x-modal="limitValue"> 
//field.limit contains [
    {
        "text": "includes",
        "value": "includes",
        "id": 0
    },
    {
        "text": "excludes",
        "value": "excludes",
        "id": 1
    }
]
//closing the comment
                <option :value="limit.value"  x-text="limit.text"></option>
              </template>
            </select>
            <span x-effect="limitValue"></span>//throws error as limit value is undefined 
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!