Most voted "value" questions
46 questions
Sort by count of
-
4
votes1
answer565
viewsFind in an array the next value greater than a predefined value
I have the following array with forech set: $getdepth = '{"result":"true","asks":[[20,13],[34,20],[30,8],[35,8],[4,40],"bids":[["18",22],["16",74],["70",99],["65",18],["1",15]]}'; $depth =…
-
4
votes2
answers1405
viewsHow to send two values per parameter with a single option selected? PHP
I need to send two values per parameter to another page, however value select tag only sends one... How could I send two? Follows the code: <option value="<?php echo $data->format("d/m/Y");…
-
4
votes1
answer812
viewsHigher value in an array in PHP
I’m having a problem finding the highest value of the box width of the products for shipping a site I’m doing. I put the data of the products with the size of the boxes in the database and I am now…
-
3
votes2
answers578
viewsGet the optgroup label and option value and display in a div with Jquery
I have the following code: <select> <optgroup label="fruta"> <option value="banana">banana</option> <option value="uva">uva</option> </optgroup>…
-
3
votes2
answers1011
viewsReturn with 2 C#Values
I want to give return of two values in c#. My code is like this currently, just returning the imagePath, but I want to return the imagePath and the normalPath at the same time. string imagePath =…
-
2
votes2
answers491
viewsQuery Select Option PHP
How to do a query with select option that the user can choose? On the frontend: <form method="post" action="Procurarquery.php" enctype="multipart/form-data"> <span class="LABEL4CSS"…
-
2
votes1
answer247
viewsHow to take Input value and make an account
Hi, I’m new to programming, and I’m learning javascript. I decided to make a tool that calculated the AMA (slaughter, death, assistance) of a game that I play. The bill is to add the slaughters with…
-
2
votes1
answer834
viewsPython - Count values within another count of values in a dataframe?
I have a df as follows and I need to make a top 10 of the most repeated words in problem and within these selected words do the same within the solution. Obs: the dataframe has more than 20,000…
-
2
votes1
answer356
viewsTo update the output value in real time
Hello, in an apostille I’m reading you have an excerpt to update the output value based on an input type="range". It has the codes and everything, but although it’s the same (or at least it seems),…
-
1
votes2
answers547
viewsPHP delete values from the form if successful
I would like the values of this form to be deleted if the form is successfully submitted, everything is ok (does not erase) if there is any error but if there are no values continue there, I believe…
-
1
votes1
answer392
viewsAdd Input with Jquery and how to get the data from this input
I have 1 JS button that creates input. I just can’t get this input data. I can create every input with a different name, but I have no idea how can I get these values from php. I tried to send the…
-
1
votes2
answers43
viewsProblems with Jquery selectors
My problem is this, I have this code: <script language="javascript"> $(document).ready(function(){ $('#simular').each(function(){ $(this).click(function(){…
-
1
votes2
answers53
viewsError using values string
Hello, I’m using string within values. Everything is working fine, but when the phrase is composed of something that comes from the bank (for example) and a string, it is putting numbers instead of…
-
1
votes1
answer442
viewsPrimefaces autocomplete does not pass value to the bean
I have a problem with the Primefaces autocomplete component. The value parameter is not being passed to my bean. private String filtroClientes; public List<String> listarFiltroDeClientes() {…
-
1
votes1
answer234
viewsAttempt to index local 'rkgdat' (a nil value)
Talk guys, I’m trying to record some information on a . json but I’m getting this error: date.lua:12: Attempt to index local 'rkgdat' (a nil value) local triggers = { '' } local action =…
-
1
votes1
answer876
viewsHow to make an INSERT in postgresql with conditional default value?
We have the following simplified table for the example: create table teste( id serial not null ); The commands below cause syntax error: insert into teste( select (case when 1=1 then DEFAULT end) );…
-
1
votes1
answer310
viewsRedirect to URL with input value filled
I wonder if it is possible to mount a redirect to a third party login screen with the input "value" filled? would point out something like: http://dominio.com.br/login?pt01=admin-51 the input is…
-
1
votes2
answers498
viewsEloquent Laravel - Column user_id
Hi, I’m learning Portable and I didn’t find this on any forums. I have some tables that have a foreign key called 'user_id', but when I save an object in the bank I always have to fill this column.…
-
1
votes1
answer361
viewsHow do I manipulate data from a select created from jquery
I am trying to take the values of a select that I entered through a jquery, and as the value it adds elements within a div also created by that same jquery. The problem is that I’m not getting these…
-
1
votes2
answers10476
viewsPick up value or button name with Jquery
Does anyone know how I could catch the value of a button using Jquery? What I want to do is use this value in a textarea, so it doesn’t necessarily have to be the value, the name would also serve. I…
-
1
votes1
answer335
viewsButton with two value only with html is possible?
You want to put two actions in the value field of a button, using html only. It is possible? My original button: <button type='roll' name='roll_arma1' value='&{template:default} {{name=Ataque…
-
1
votes2
answers57
viewsInformation is not enough in the value attribute
The information that I take from the user model (getTimeLine method) reaches the homeController, but does not reach the homeView in the input type Hidden in the value attribute. public function…
-
1
votes1
answer275
viewsCHANGE INPUT FILE STATUS
And ae! So, I wanted that when choosing a photo in the input, the name of the file/ photo was printed under the input or inside, whatever... Ahh, yes... The input ta with diplay:None; only that a…
-
1
votes1
answer58
viewsAlerts the user that he did not choose a type=radio;
I’m having a problem not knowing how to identify if the user has selected an option type=radio. Follows the code: let nComputador = ""; let nJogador = ""; //let minhaEscolha =…
-
1
votes1
answer160
viewsGet String (.net core for Jquery) value
I am developing a site with . net core and I am using Jquery. On the page Index.cshtml.cs I have a function that has the validations and I pass the messages (if it is ok, if there was an error),…
-
0
votes0
answers26
viewsKnowing Checkbox value inside a Multiview/View/Datalist
I wonder how the value of a checkbox which in turn is inside a DataList which is inserted within a View and the latter within a MultiView. I tried some methods FindControl but without success.…
-
0
votes0
answers46
viewsWhat is the behavior when Mongodb reaches the defined maximum value of $inc?
What is the behavior when Mongo reaches its maximum value for findAndModify with parameters below, how can I restart to 0 when this happens? db.collection('count').findAndModify( { "_id": "xy" },…
-
0
votes0
answers80
viewsHow to calculate +10.5% in a product
How to calculate +10.5% in a product? My calculus is like this: private void txtMargemLucro_Leave(object sender, EventArgs e) { txtPrecoVenda.Text = (Convert.ToDecimal(txtPrecoCusto.Text) *…
-
0
votes0
answers214
viewsVBA integration with IE, return Value where Value=""
I have a problem in a macro to return me the value of a web page, my doubt is established by the value shown in the HTML code is always null, but in the reply box gives me the requested value. Even…
-
0
votes1
answer57
viewsUse of batteries and passage by reference
Hello, I’m doing a program where I have a stack and I want to reorganize the elements of this. I have created a function that performs this only the original stack is not being modified (it is only…
-
0
votes2
answers441
viewsUse the result of an array as value of an Insert - PHP
Good night, I’m having a doubt. I am uploading a file and extracting its contents and inserting in my database, but I have a question how to use the array like the value My file consists of a…
-
0
votes1
answer150
viewsHow to sort the result of a query by a column where there is a value in another column in the same table?
I have a table with several columns, and I want to sort the results by the values of one column where another column in the same table is equal to a value. I have tried implementing the query with…
-
0
votes2
answers333
viewsDefault Value Dropdown Angularjs
In my project I have a dropdown, iterated array. Note that in the array I have a key called default which is set to true or false. I wish the dropdown defalt value was what came with the key set to…
-
0
votes2
answers668
viewsUsing <pre> Inside a PHP TAG of an html value
Good night, you guys. One more trick I’m in doubt in my system. I’ve done everything at the beginning of the page with PHP to do a search in my database. But there is a field that I am bringing…
-
0
votes1
answer15
viewsCan’t call method "getFirstName" on an Undefined value at Consmanagement.pl
Good afternoon. I recently started learning Perl. I was practicing with a simple object-oriented program. This is my class package Consultant; sub new { my $class = shift; my $self = { _firstName…
-
0
votes2
answers374
viewsInput fields are not being filled in according to value
In my system there is a page with a form that registers an order and another page with a table that shows all registered order records. Each row of the table has a request and an edit button that…
-
0
votes1
answer983
viewsThe Value method of the Range object failed
Good evening, I’m making the following mistake: The Value method of the Range object failed The complete code is found here: By the Ghostbin Private Sub CommandButton2_Click() ''' Botão "CADASTRAR"…
-
0
votes3
answers68
viewsselected option
I have a code that returns data from the database in an option, but I cannot make q the value registered in the database is selected. For example, the option will bring all registered neighborhoods…
-
0
votes1
answer57
viewsCreating dynamic inputs with increasing value
I have a script that already adds and removes the desired fields. I click + it adds and click on the recycle bin icon it removes.. Until then this ok, I copy the div and it creates a new line with…
-
0
votes1
answer1361
viewsError "Valueerror: Length of value does not match length of index"
I’m trying to find the address of stores "5aSec" in Brazil, but I keep getting error when I run this code import requests import json import pandas as pd dMun =…
-
-1
votes2
answers173
viewsHow to make multiple values into a single option and retrieve them
I want to know how to make a list with a specific tab "|" and define more than one value in select-option and recover in Javascript with a split("|") for a variable, something like: <select…
-
-1
votes2
answers1993
viewsHow to get the values inside an array?
0 => {#557 ▼ +"nis": 1 } 1 => {#561 ▼ +"nis": 16192248487 } I have this array, I want to get the values: 1 and 16192248487, and plays them in a variable to give a dd and print them on the…
-
-1
votes2
answers329
viewsGrab Value from multiple buttons in Javascript
How to get the value of various buttons using Javascript ? Qual cor você prefere ? _______ ______ ______ |verde| |Azul| |Rosa| ------- ------ ------ Qual sorvete você prefere ? ___________ _________…
-
-1
votes2
answers744
viewsTake the value of a field
I am starting the studies with pure Javascript, to practice better I created a table as if they were orders of a pizzeria, and put some field (flavor, quantity and value). At the end of the line I…
-
-1
votes1
answer110
viewsRecover values after Submit is sent in value
Hello I would like to put the values in the input so that if I press the Submit without having the other information I do not miss what has already been filled I thought putting inside the "value"…
-
-2
votes2
answers61
viewsHow to get the value of buttons created through a foreach loop in php/Laravel?
Personal I have an array with sizes of a product, follow the example of the array: And for each size I create a button through a foreach, follows excerpt from the code where I create the buttons:…