I have 20 inputs in my html and each input has a different id, so before sending the backend I get getElementById the value of each div so I repeat the getElementById 20 times and verify that it is different of empty , how...
I'm doing a insert in sql and I needed to change the single quotes, because for example a name O'Connor breaks the structure.
I've tried putting:
str_replace("'", "\'", $cadena);
Also with:
htmlspecialchars($contenido->te...
When I position an element absolutely within another element (with relative position), the coordinates that I put are counted from the ends of the container without taking into account the edges (which would be equivalent to the inner part of th...
I have a question, I currently have an HTML table, but I would like to add rows dynamically, I'm trying to do it in the DOM way, but I can not get it, my table looks like this:
<table border="1" id="tablaprueba">
<thea...
I am creating a form, and I have a situation of a field that has to be filled depending on the multiplication of some if it is bigger than it has to fill the field if it is smaller that you do not have to fill it.
I am doing this with javascr...
I have a problem, adding a record saves it in duplicate in the following way:
actualPorcentaje 10 | marcaid 0
actualPorcentaje 0 | marcaid 4
This form allows me to update the prices through a percentage, after selecting a brand.
<form...
I have a "create" method
public function crear(Request $req) {
$rules = array(
'nombre' => 'required',
);
$validator = Validator::make ( Input::all (), $rules );
if ($validator->fails()){
return Response::...
I'm trying to use the routerLink property of the "tag to" in the html that loads when the page starts.
This works well within the template of a component, but in this case it is not necessary to render a component, since the menu is s...
I'm having a small problem when creating fragments, it's that I get an Exception as if getSupportFragmentManager was already running.
The error:
E / AndroidRuntime: FATAL EXCEPTION: main
Process: jhon.casique.baccus,...