Questions tagged as 'jquery'

4
answers

As a tag on an element of a table with jQuery?

I have a simple table: table { border-collapse: collapse; } table tr td { border: 1px solid #000; } mark { background: yellow; } <table width="300px" border="1px" bordercolor="#FF0000"> <tbody id="qtdPrecos"&...
asked by 26.07.2017 / 13:59
3
answers

How to create and remove divs with inputs dynamically with jquery

I need to dynamically create and remove div´s for a form that I have, I already did using table, but now I was asked div´s . I tried to make an adaptation but I could not, what I need is to create a button to insert div´s and...
asked by 21.11.2017 / 20:42
3
answers

Function within JQuery what is the order of execution?

I have a function in jquery that has a while that writes data to the database, and after this while it prints to console that the data has been saved, the function looks like this: function gravaDados(){ var qtde_linhas = 6 //ele pega a quanti...
asked by 02.10.2017 / 13:56
3
answers

AJAX with HTML data return

I have an AJAX function: function userCheck() { var username = $("#username").html(); var userid = $("#balmung-id").val(); $.ajax({ url: "systems/usercheck.php", type: 'POST', data: { username:...
asked by 22.12.2016 / 12:27
2
answers

IF to check quantity required for given KG

I need to make an IF in Javascript. I'll explain: A customer sells: 40kg barrels. 3kg tube. I'm not sure how to do this IF. The idea is to show in the field qtd40kg Only multiples of 40, which is the weight, ie: If I need 4...
asked by 16.01.2016 / 23:55
6
answers

Convert div text to number

I'm trying to get the text from this structure: <span id="our_price_display">R$ 71,90</span> And I would like it to return only 71,90 . But in the structure I created, I can not get the "R $" from the text and only reco...
asked by 24.11.2016 / 19:44
3
answers

Uncheck a checkbox when clicking outside it

HowcanIunmarkacheckboxifIclickonanotherfieldinthesite?Thecheckboxissothatwhenthestateischecked,it'drags'mymenufrom-65%to0andappearsonthescreen,beingusedinaresponsivemobilelayout.UnfortunatelyIhavenoideahowthiscanbedone,butIbelieveit'sinjavascri...
asked by 29.12.2015 / 18:43
3
answers

Avoiding line breaks in text areas [duplicate]

I have a normal textarea <textarea placeholder=" Digite aqui" class="form-control"></textarea> I wanted the user to press enter when he did not break the line, but already sent the content. Could you do this with a input...
asked by 21.12.2015 / 19:20
3
answers

Select option from a select

I have the following HTML: <select id="faturamento-mes-referencia"> <option value="1">Janeiro</option> <option value="2">Fevereiro</option> <option value="3">Março</option> <option v...
asked by 10.02.2017 / 16:42
1
answer

Does Angular 2 replace jQuery and AJAX?

With the use of Angular 2, is it still necessary to use jQuery and AJAX or does Angular replace 100% of these 2 technologies?     
asked by 01.09.2017 / 15:37