Questions tagged as 'javascript'

0
answers

Homologo of IndexOf in Jquery? o How to execute JavaScript attribute in Jquery?

I want to verify an Input of type Email, and get a validation once placed the .COM since it is the only thing that lacks the validation of the browser. I was dealing with JQuery but I can not find information to help me, I need something that...
asked by 23.01.2018 / 01:24
0
answers

How to disable a button or a href if localstorage is empty in ionic

Good evening, I need to disable a button or more specifically a href in html when the localstorage is empty or at least the first variable is equal to undefined, thanks in advance!     
asked by 23.01.2018 / 01:32
2
answers

Changing CSS classes from JavaScript

I put you in situation, I have a div with an image of a dog, when you click on it, its sound is played and the div becomes smaller and bigger with the small class that contains that animation. The problem is that at the end of that animation...
asked by 20.01.2018 / 17:11
0
answers

Error "DataTable warning: table id = tableID - Ajax error"

I'm working with DataTable and Ajax, I have an error that says:    DataTable warning: table id = tableID - Ajax error. For more information about this error I do not print the data in PHP, I do not return anything, I want to clarify that...
asked by 20.01.2018 / 16:12
2
answers

Autofocus for various fields

I have a login form in a modal in bootstrap 4, and I want autofocus in the fields email and password . <form action="proceso.php" method="post" enctype="multipart/form-data"> <div class="form-group"> <input type="...
asked by 25.01.2018 / 22:23
1
answer

Push notification in automatic windows

Good, I want to send an automatic push notification in windows to all the users that I choose, every time someone makes a record in the database or every time someone executes a function. I have this code in js that sends a push notification,...
asked by 22.01.2018 / 11:23
1
answer

Uncaught TypeError: $ .ajax is not a function at HTMLDocument.initial

When I start this error appears    Uncaught TypeError: $ .ajax is not a function at HTMLDocument.initialize $(document).ready(iniciar) function iniciar(){ $.ajax({ type:"POST", url:"../modelos/sucursales.php", succ...
asked by 21.01.2018 / 23:51
0
answers

Do not reload a web page. javascript

What I want is that the client does not recharge a web page or if it recharges me better to close the window. window.onbeforeunload = function() { return "seguro que desea salir."; } This does not work for me because it recharges.     
asked by 22.01.2018 / 00:05
1
answer

how can I send data from a class radio input to laravel without touching the names

I would like to send parameters by means of a class in the radio type inputs to the laravel driver without touching the property name <div class="form-group col-lg-6 col-xs-12"> <label class="control-label">Sexo:</label>...
asked by 17.01.2018 / 15:35
3
answers

Insert array post php mysql

Good day forum. I have a form where I send call two input number where its name property called an array <input type='number' class='form-control' name='cantidad[]' id='cantidad[]' value='"+cantidad+"' taking into account that the a...
asked by 17.01.2018 / 16:02