In PHP I would use:
for($i = 3; $i <= ceil(sqrt($num)); $i = $i + 2) {
if($num % $i == 0)
return false;
}
What is the function to do the verification using JS?
I have two combobox, I need to get the id of one to load the other from the item that was selected in combobox1, how could I do this through a javascript function.
<select id="cb_catinsumo" class="combo" name="cb_catinsumo" class="combo2"&g...
I created a new branch / branch on my local machine. So I made commit and push to the remote repository on BitBucket.
I noticed in BitBucket that the new branch / branch was created successfully.
Now, another programmer needs...
I am sending a value get through a link for example:
<a href="/admin/editar_user/5">Editar</a>
And there in the method of my controller that calls the view I get:
public function editar_user(){
$this->load->vi...
I was able to round the edges of the div just not being able to align the text in front of the div.
My code looks like this:
.boxEtapas {
overflow: hidden;
}
.etapas {
margin: 0 auto;
}
.etapas ul {
list-style: none;
}...
Explanation:
I have a <div> parent that contains two <div> daughters, however I would like to insert a <table> using javascript, between, that is, in the middle of these two <div> daughters...
I have a function in python to capture the dimensions of a product in LxCxA format but I can not make it work for cases where the unit of measure appears between the values, the regex is this here:
def findDimensions(text):
p = re.compile(...
I have the following code:
<div class="container-fluid">
<h1> Áreas de Atuação </h1>
<div id="hr-atuacao">
<hr>
<div class="card-columns">
<div class="card-img">
<img class...