Questions tagged as 'javascript'

2
answers

How do I edit the width of a class using angularjs?

I have an element with two classes: <div class="classe1 classe2"> </div> I want to increase the width of my class 2 style, what would be the right way to do it?     
asked by 04.08.2015 / 07:13
2
answers

Doing replace or append on a p?

I was trying to make an append or replace in jquery from an HTML but I'm not succeeding at it, it replaces only one <p> that contains class .frete-gratis but wanted to replace all with iframe . Here is the cod...
asked by 15.07.2015 / 18:30
3
answers

JS - How to add a style inside a new class?

Is it possible with javascript to add an element to a class? EX: Have a class: .post_22 {color:red} Until then it only has color, but when you click on a link: <a onclick="minBox()">Seu Poste</a> Would you like to add CLA...
asked by 28.07.2015 / 16:49
1
answer

Mark all checkboxes with pure js

I put a function to mark all the checkboxes, in a script that Isac has developed in an earlier doubt, but it does not work in conjunction with the function, only in a static html. function all_check(marcar) { var itens = document.getE...
asked by 13.10.2017 / 10:00
2
answers

Concatenate sum of number to a string

I want to concatenate a sum from a number to a string in JavaScript and had to resort to an auxiliary variable. What I did first (incorrect example): for (var i; i < x; i++) h = "texto" + x+1 + ".txt"; Then: for (var i; i <...
asked by 27.07.2015 / 15:57
3
answers

Check if element exists inside another element with Javascript

Is there any way I can check if a structure exists inside another one with Javascript? For example: verifying that the div "child" is inside the "parent" to execute a function: <div id="pai"> <div id="filho"></div&...
asked by 25.10.2017 / 18:17
2
answers

Validating Value

I need to validate a value before it is sent, how do I validate it before sending it, because it is already sending it directly without validating the sum of the input. <script type="text/javascript"> function soma() { if (form.s...
asked by 07.11.2017 / 23:44
2
answers

Collecting words from an input

I'm developing a (study-only) page for a bookstore. The variable titulo_livro receives the data of a input type='text' . What do I need to do: The title of the book will often contain more than one word. How do I collect these...
asked by 22.12.2017 / 18:42
3
answers

Check Availability of Zip Code

I'm trying to develop but I'm not familiar with programming with Ajax , jQuery and JavaScript , so I'd like help I have a field that takes the customer's zip and a button so that when he clicks the return button if that zip is covered th...
asked by 07.11.2017 / 22:40
3
answers

optimize jquery datatable with a database with more than 30,000 records

What is the best way to optimize the bank's data return? the ideal would be to store (on the server-side) all the data (select * from data) in an array of objects and send it to the client-side? From there, do I handle this array via javascript...
asked by 16.04.2015 / 18:56