Questions tagged as 'javascript'

1
answer

Disabling comments on Angular

I'm starting to study Angular (current version) and I have verified that after all the codes are compiled, the development information comments that I put in the .ts files are replicated to the .js files generated by Angular. These...
asked by 29.08.2018 / 19:55
2
answers

Identify numbers and letters typed in input fields with typescript

I want to perform an alphanumeric validation, requiring the use of capital letters and numbers typed in an input using typescript. I need to know when a capital letter is typed, for example nAbd and when a cdc5fr number is entered....
asked by 30.08.2018 / 05:06
1
answer

Javascript IF return content

Good morning everyone, I have a certain problem, if it was in pure Javascript I would have done using if and else without problems, as I did in another file and it worked! Basically the HTML file (with AngularJS): <d...
asked by 30.08.2018 / 14:26
1
answer

Dynamic input layout for gallery upload

Hello, I'm creating a resource where the mechanism should: choose an image in the input When changing the input, a new one is created via js next Getting there, I need help, because the function only executes on first input, and stop...
asked by 31.07.2018 / 22:02
1
answer

Doubt of how to collapse / collapse a menu by clicking on the other one

I have a question on the following item, I created a SideBar with bootstrap menu, but I wanted to click on one, the one that had open shrink. Example Codemadesofar: codeply /* DEMO STYLE */ @import "https://fonts.googleapis.com/...
asked by 01.08.2018 / 19:56
3
answers

Add string with JS in shopping mode [closed]

I'm doing my first freelance, but I'm having trouble because I do not know much about JS. link (Still in process) when I click on buy, a modal appears, which I would like the checkboxes to change the total value to be selected, however I can n...
asked by 31.07.2018 / 22:06
1
answer

JQuery HTML Currency Mask (non-input)

Hello. I'm behind a currency mask made in jquery, but applied directly to an html span tag, with a specific class. What else I have found in my searches are the input masks for forms, which is not the case. I ended up getting a bit confused, bec...
asked by 09.10.2018 / 04:30
1
answer

How do I create a functional posting history?

So I was trying to create a rudimentary system of "posts" with a history where all would be stored, but I realized that there was a problem that I could not solve, that the most recent posts were created below the older. In the case, the idea...
asked by 08.10.2018 / 20:20
2
answers

a href with single click until page reload

I have the following code <a href="{{ route('carrinho.deltocart', $item['id']) }}" id="deltocart"><i class="fas fa-minus-circle"></i></a> <a href="{{ route('carrinho.addtocart', $item['id']) }}" id="addtocart"><...
asked by 28.08.2018 / 19:09
1
answer

I have a method in ServerSide validateNIF and I want to call it through javascript (ClientSide) to validate an asp: textbox when it does leave

I tried to do it through the ontextchange event and call the backend function, but as this is to make a record, whenever it ran the event it wipes me the data from my other textboxs (it seems to refresh the page). Getting only the data from the...
asked by 28.08.2018 / 19:23