skip to Main Content

Javascript – How to automatically jump to next input field

i am trying to create an input field with 6 inputs: function focusNext(currentInput, nextIndex) { if (currentInput.value.length === 1) { const nextInput = document.querySelector(`input:nth-child(${nextIndex})`); if (nextInput) { nextInput.focus(); } } } <div class="code-input"> <input type="text" @bind=code0 maxlength="1" onkeyup="focusNext(this, 1)"> <input…

VIEW QUESTION

Change css in Blazor

Is there any way to have a specific card show its own text when you click the show text button. I've tried several different ways of manipulating CSS, it doesn't work @foreach(var note in noteViewModels) { <div class="m-2"> <div class="d-flex…

VIEW QUESTION

How do I get this call to httpClient.GetFromJsonAsync() to work?

I have two similar calls on a Blazor page: private async void SelectQuiz() { List<String>? ls = await httpClient.GetFromJsonAsync<List<String>>("api/BgQuizAnswer/GetBgQuizList"); String? txt = await httpClient.GetFromJsonAsync<String> ("api/BgQuizAnswer/GetHello"); The first call works fine while the second one fails. [HttpGet] [Route("GetBgQuizList")] public ActionResult<List<String>> GetBgQuizList()…

VIEW QUESTION

Asp.net – convert text as uppercase

i want to take uppercase only even if i am entering lowercase it should convert in uppercase in text field in mudblazor. <MudTextField For="@(() => AddEditItemModel.HSNSAC)" @bind-Value="AddEditItemModel.HSNSAC" Label="@_localizer["SAC"]" MaxLength="3"> </MudTextField> i tried to call through @onclick method and tried to…

VIEW QUESTION
Back To Top
Search