Questions tagged [onchange]
The onChange event gets triggered when the state of an element is changed. Many languages which work with a GUI support some form of a change-event. For example JavaScript and the JavsScript library jQuery (with the .change() function).
onchange
3,491
questions
0
votes
0
answers
12
views
How to use custom function in onChange event handler in React-Hook-Form?
I want to create a form with two MUI Select components. Conference and division are inter-related. Their relationships are described below.
There is a conference corresponding to each division, as ...
0
votes
1
answer
24
views
Django - get value of a form textinput on onchange event
I am using this to get the ID and the value of a select item in a form in django with the onchange event:
class forms_bdc(forms.ModelForm):
[...]
bdc_description_1 = forms.ModelChoiceField( widget=...
0
votes
0
answers
33
views
Handling Race Conditions in IOptionsMonitor<T> When T Depends on Other Options in .NET Core
I'm using IOptionsMonitor where T is dependent on other options in my service. There seems to be a race condition when using the OnChange event because the IOptions are initialized asynchronously on ...
0
votes
0
answers
23
views
Why is my SwiftUI View flashing a @SectionedFetchRequest with no predicate before applying the new predicate?
I am trying to populate a series of LazyVGrids with Items using a @SectionedFetchRequest in SwiftUI.
I am getting the correct results, but each time value or tag changes and composePredicate runs, ...
0
votes
1
answer
26
views
Django - select onchange event not working anymore if using jquery-editable-select
I'm using a select item from a django model with a onchange event to trig a JS script :
forms.py
class forms_bdc(forms.ModelForm):
[...]
bdc_description_1 = forms.ModelChoiceField(queryset=...
-2
votes
0
answers
36
views
How to pass dropdown value to php to mysql query for the next drop-down value? [closed]
How am I able to allow the second query in this snippet to pass the value from the first selection onchange to the next? whenever I put the variable in the query, it does not recognize the change, but ...
0
votes
1
answer
20
views
Not able to enter characters continuously in text field due to its rendered as separate function in component
I want to bind text field with below approach but facing issue when i enter characters in text field. For first character it works fine but when i enter second character the control/focus comes out of ...
0
votes
0
answers
26
views
using React-hook-form need onChange event when passing control to custom component with useController
Based on react-hook-form, I have a custom component like this:
// inputCont.js
export const InputCont = ({ name, control, rules, ...others }) => {
const { field } = useController({ ...
0
votes
1
answer
38
views
Powerpoint VBA basics: textbox on change event
I have a slide presentation in Office 2010 and would like to use a textbox as input for a calculation and display the result in another textbox when the value changes.
With some help from ...
1
vote
1
answer
54
views
SwiftUI Picker: Run code only when user changes the state of the picker
In my SwiftUI app on macOS Sonoma I am using several Picker views. Here is one example:
Picker("Berichtsart", selection: $report.reportType) {
ForEach(ReportType.allCases) { option in
...
0
votes
1
answer
40
views
e.preventDefault doesnt work in onChange event, React
I'm trying to change the type of input from number to text, but I want user can type there only numbers, dot or comma. I wrote the onChange handler that checked if input contains only allowed symbols ...
0
votes
0
answers
30
views
Autofill feature not working in safari browser when component re-renders during autofill
I have a component say DropDown and it has an onChangeEventHandler in the select html tag. My parent component which is a address form renders two dropdown component one is for country field and the ...
1
vote
0
answers
31
views
Dropdown On Change Javascript and Ajax JQuery
I want to create a dynamic dropdown, with a condition where if the initial dropdown is selected then other dropdowns will appear according to the selected conditions.
I've made it and it works with ...
0
votes
2
answers
235
views
BlockNote OnChange Issues in Next JS
After I type in "/" the component re-renders every single time I try to type something, making it unusable.
File A:
const update = useMutation(api.documents.updateDocument);
const ...
0
votes
0
answers
36
views
Why is react-select ui not updating although onchanage function is working?
I have a set of input that can be added incrementally. first, i cant set the value type to be "string" options shoots an error:
Type '{ value: string; options: { value: string; label: ...