if(!$("#src-img[src='']")){
}else{
};
I would like to know what is wrong with this selection in if, in case, I want, if a value is set in the src attribute, it executes if, otherwise else.
* That's why I put the '! '
Good morning,
I have to check if all fields of the form, sent as $ _POST, have not been blank, this is until I solved it. But I wanted to see a way to not need to use many if / elif to check every index of $ _POST would:
if(empty($_POST['no...
I have the following form:
<body>
<form name="questao1" method="post" onsubmit="sendToDB();">
<br><input type="checkbox" name="Q1[]" value="Enfermagem" onclick="getPontos(1)"> Garantir a saúde das pessoas...
I can not display the lower and upper values.
Make an algorithm that reads two numbers and indicates whether they are the same or, if different, show the largest and smallest in this sequence.
int V1,V2;
printf("Valor 1 :"); scanf("%d"...
Suppose I have the following if
if(a || b || c == true)
In this case, if only one of the values is true to activate the condition, but I would like the condition to be activated only when at least 2 of the past values are true, is it...
I am making a select and before printing the form on the screen I would like to validate if the select returned lines, as I do this I tried in several ways without success.
$stmt = $dbh->prepare($fat_ped_online_vende);
$stmt->execute();...
In the example discussed in the PHP Manual , if instructions. I know that if is used for comparisons, what comparison is being made here? Here is an example from the website below:
<?php
$mysqli = new mysqli("localhost", "my_user", "my...
I'm making a rough draft just to train if and else that will be a subject in my next college class. I want to get there and at least already have a base of what the teacher will teach.
My question is as follows.
When I ask th...
I have tried in many ways, grouping with () of all the ways that I imagined, creating a variable and calling it in the condition etc, but I can find where I am wrong.
$(function() {
$('#id1').change(function(){
if (($(this).v...
I'm new to php and I'm creating a comparison of box sizes, and for that I'd like to put inside a function but I do not know which parameter to put inside the function's relatives.
Someone could help me, Thanks.
<?php
include("caixa.php");...