Posts by frodrigues • 181 points
16 posts
-
-1
votes1
answer41
viewsQ: If item exists in the list, add 1 more
var prodAdd = false; $(".id").each(function(index, value) { if ($(value).val() == vId) { Swal({ type: 'info', html: '<h5>Produto ja adicionado!</h5>', background:…
javascriptasked frodrigues 181 -
0
votes2
answers105
viewsQ: How to recover an input value by button
function getValor(){ var valor = $('.produtos').val(); alert(valor) } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <input value="1"…
javascriptasked frodrigues 181 -
0
votes1
answer68
viewsQ: Taking Value from an Array of Inputs
Good morning How to take the value of equal inputs when clicking on the line. function getValor(){ var valor = $('.produtos').val(); alert(valor) } <script…
javascriptasked frodrigues 181 -
1
votes3
answers123
viewsQ: Validate javascript line
People I am trying to do a validation line by line on a table as follows: If the product is marked as yes on a supplier it cannot be marked to another supplier. Can someone please help me? Follow…
javascriptasked frodrigues 181 -
0
votes0
answers36
viewsQ: Laravel advanced search
Mount table according to search Good afternoon, people, it is possible to create a search and assemble a table according to the result EXAMPLE public function envia(Request $request){ $bcentrocusto…
laravelasked frodrigues 181 -
4
votes2
answers160
viewsQ: Insert Javascript line
I’m doing a validation example for a dynamic table and would like a bug help here. When I make the first insertion he gives right, when I change, he let insert and duplicate.…
javascriptasked frodrigues 181 -
1
votes2
answers413
viewsQ: Get text from a select inside a javascript foreach
Good afternoon I have a select that dynamically adds row by row within a table, but my code only takes the text from the first line. I would like to take the text according to the line and pass to…
javascriptasked frodrigues 181 -
0
votes1
answer95
viewsQ: Save checkbox inside While Laravel
I’d like to know how to save values checkbox within a while, the field comprar01 the checkbox who must return true or false. I receive through the request():…
laravelasked frodrigues 181 -
0
votes0
answers431
viewsQ: Calling Javascript function after Page loading
Good morning to all I have a function to multiply qnt * total, but it only loads after clicking the field vrunitario. I wish that when opening the page she would calculate, I don’t know where I went…
javascriptasked frodrigues 181 -
4
votes1
answer71
viewsQ: Sum returns Nan for values above 999
I have a function that calculates subtotal + ascrescimo - desconto, but I went to test a value above 999 it returns NAN. //função para calcular o total da nota function calcular() { var soma1 = 0;…
javascriptasked frodrigues 181 -
2
votes1
answer99
viewsQ: Truncated data for the vlrDesconto Laravel column
I’m trying to save field with formatting by jqueryMaskMoney, but this giving truncated data error $("#desconto01").maskMoney({thousands: ".", decimal: ","}); Error: CONTROLLER public function…
laravelasked frodrigues 181 -
0
votes0
answers62
viewsQ: Sum and Multiply dynamic input
I have this function that multiplies qnt * vlor = subtotal in a dynamic table. But it only does the calculation on the first line. I would also like to pull the total sum so subtotal. I found that…
javascriptasked frodrigues 181 -
1
votes1
answer31
viewsQ: Modal search_person returns nothing when changes Javascript page
Good morning I’m using a paginated modal with datatable, and when I search or change page the function stops to add the person in the main page. Javascript function $(function() {…
javascriptasked frodrigues 181 -
0
votes1
answer112
viewsQ: Pivot Table for 3 Laravel Tables
My doubt would be how to display table data in a relationship Many to Many with more than two related tables: Ex: Main table SALE PIVO VENDA_DETALHE table (where to buy/idproduct/idcentrocust)…
laravelasked frodrigues 181 -
2
votes2
answers672
viewsQ: Return columns from belongsToMany Laravel pivot table
Good morning person. I created a search that returns requests and when I click opens the products of that request. However I cannot make the products appear as a string, only in array format as in…
laravelasked frodrigues 181 -
0
votes1
answer208
viewsQ: How to save radio input inside an Laravel table
How to update the database in case id=54 updating radio inputs meet with value=a / purchase with value=c. Obs: This is a purchase request made by the user, I would like to give an update only in the…
laravelasked frodrigues 181