У меня есть функция jQuery, которая дает идентификатор значение в моем . Это значение заполняется в моем , но при сохранении не связывается с переменной (ex @bind-value = "partentmodel.foo"). < /P>
Scan MRN
< /code>
Quagga.onDetected(function (result) {
console.log("Detected barcode: " + result.codeResult.code);
let MRNbarcodeText = document.getElementById('mrnBarcode');
a = result.codeResult.code;
MRNbarcodeText.value = a;
$('#barcodeModal').modal('hide');
});
< /code>
In MVC there is no issue binding the value. When a user enters text into the field it binds the value. The value doesn't bind when a string is populated in the field from a jQuery function.
I'm using Quagga scanner to read a barcode and return a value to an input text field. It's fairly simple and works in MVC but we ported to Blazor and now the value doesn't bind.
In the modal, after the barcode is read, the correct barcode value is populated in the correct field but on save the binding doesn't occur. It returns null for the value.
Подробнее здесь: https://stackoverflow.com/questions/795 ... s-id-value
Значение привязки после jQuery дает значение идентификатора ⇐ Jquery
Программирование на jquery
-
Anonymous
1741944012
Anonymous
У меня есть функция jQuery, которая дает идентификатор значение в моем . Это значение заполняется в моем , но при сохранении не связывается с переменной (ex @bind-value = "partentmodel.foo"). < /P>
Scan MRN
< /code>
Quagga.onDetected(function (result) {
console.log("Detected barcode: " + result.codeResult.code);
let MRNbarcodeText = document.getElementById('mrnBarcode');
a = result.codeResult.code;
MRNbarcodeText.value = a;
$('#barcodeModal').modal('hide');
});
< /code>
In MVC there is no issue binding the value. When a user enters text into the field it binds the value. The value doesn't bind when a string is populated in the field from a jQuery function.
I'm using Quagga scanner to read a barcode and return a value to an input text field. It's fairly simple and works in MVC but we ported to Blazor and now the value doesn't bind.
In the modal, after the barcode is read, the correct barcode value is populated in the correct field but on save the binding doesn't occur. It returns null for the value.
Подробнее здесь: [url]https://stackoverflow.com/questions/79508601/binding-value-after-jquery-gives-id-value[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия