Find Input Element By The Current Value

preview_player
Показать описание
This video shows how to find an input element by its "value" attribute. You can find elements using the exact static value, or its prefix, or suffix, or even matching part of the string value. But what about the input elements with the value set dynamically by the application? You no longer have the attribute to select the element, you must filter the input elements yourself. For example, to find the input element with the string "0" in its current value you could write:
.filter(function (k, input) {
})
Рекомендации по теме
Комментарии
Автор

🎉
I don't recall filter with callback being in the docs even!

MuratKeremOzcan
Автор

Hey Gleb! How do you confirm the first two letters in a text?
Scenario: There is a state input field, upon typing (let's say) "Mi" it should display all the states that start with those two letters in a dropdown.
How do I assert if all the returned states start with a specific letter(s)?
Thank you!

abdulazizazami
Автор

@gleb How can I propose a topic for a new video? Post it here in the comments or if you have a form o something like that?

LSvider