Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

disabled and selected is invalid

See original GitHub issue

  example.ajax(function () {
      .then(function (response) {
        response.json().then(function (data) {
          example.setValue( [{
            value: '10',
            label: '深圳',
            value: '11',
            label: '广州',
      .catch(function (error) {

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

Niofhcommented, May 22, 2017

@jshjohnson Thanks

jshjohnsoncommented, May 22, 2017

setValue() only affects text inputs. You are looking for setChoices().


Read more comments on GitHub >

github_iconTop Results From Across the Web

Style invalid <select> using :invalid - Stack Overflow
Unfortunately the disabled select is not marked red. Any idea? It's not the option I like to style, I like to style the...
Read more >
Objects getting invalid when constraint is disabled/enabled.
Hi, We have a problem of objects getting invalid when constraint is disabled and again enabled. We are using Oracle 11g with AIX...
Read more >
Question: Howto make a "Select" Invalid · Issue #1454 - GitHub
Could you please explain how one should (dynamically) mark a "Select" as invalid (so that a red border is shown underneath) ?
Read more >
aria-invalid - Accessibility - MDN Web Docs
The aria-invalid attribute is used to indicate that the value entered into an input field is not in a format or a value...
Read more >
Range Disabled values Example | Mobiscroll
Be able to select a disabled date for the range end (useful for accommodation booking). Do you want to. Set invalid values. Set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found