Questions tagged as 'javascript'

1
answer

___ ___ erkimt Take only the months of JS selected date ______ qstntxt ___

As an example below, I would like to take only the month by selecting a date and entering it in the Month field with JS.

%pre%
    
______ azszpr323276 ___

You can easily do this by using the %code% event in the date input. Here's an example:

%pre%
    
___

As an example below, I would like to take only the month by selecting a date and entering it in the Month field with JS. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity...
asked by 18.08.2018 / 01:05
2
answers

JS - How to get the selector of the Element or its tree?

Hello, I'm trying to do a function that when I click on an element I can get either the tree (all parents) of the element (up to the body or a specific tag), or get something similar to "Copy -> Copy Selector "from DevTools. Forexamplewhe...
asked by 30.08.2018 / 16:10
1
answer

How to add fields dynamically and link them to the viewmodel in Asp.Net

I have a 1: N relationship between Person and Contact. In my view, I can list all the contacts of a client when it is opened. Ineedtoimplementthe"New Contact" button so that when clicked, dynamically add the fields (Type of Contact, Contact,...
asked by 01.09.2018 / 12:47
1
answer

TypeError: $ .event.props is undefined

I have a slider like this: link In my case it is displaying the following error in the console when I click the drag / drop button: TypeError: $.event.props is undefined[Learn More] jquery.ui.widget.js:20:361 _trigger http://localhost/201...
asked by 30.08.2018 / 19:56
2
answers

Failed to trigger an event

I have a function called conferirPalpite() that in thesis should be triggered by the button "Send guess" (this button has an id="sendPalpite"). I can add the value to the screen, but pressing the "Send Thrust" button does nothing, as if t...
asked by 01.09.2018 / 21:25
1
answer

Capture rel of each clicked link and go adding in the value of an input hidden

I have the following structure, I need to create something "similar" to a shopping cart. When creating in a link I need to get the rel of that link and go adding in the value of input hidden, but I do not want to repeat values, eg: If I clicked...
asked by 29.08.2018 / 20:39
1
answer

Displaying text with the OnMouseOver () function

I'm learning to fiddle with javascript , and looking at this snippet that shows the map of Brazil and its states came to me a doubt. How can I make the state name appear by hovering the mouse over the state in javascript ? Examp...
asked by 19.07.2018 / 20:25
2
answers

Checking if inputs are empty with JavaScript

I have the code below that creates three fields in HTML These fields go through the checks with JavaScript , but the part that should check if the person typed something does not work, am I doing it the right way? function chec...
asked by 29.05.2018 / 19:42
3
answers

Clear select field

I have created an Ajax request to populate a select field when the user clicks on a certain specialty to appear only the trained professionals for it. However, when clicking on another specialty the name of other professionals prevail there. I...
asked by 29.05.2018 / 20:55
1
answer

VueJS - Popular select with API data

I'm having trouble popping a select with the data I got as a return from an API. I'm using Vue. Following codes: My HTML looks like this: <select> <option value="" disabled selected>Escolha uma conta</option> <op...
asked by 07.05.2018 / 16:07