Questions tagged as 'jquery'

1
answer

How can I implement the has-error class as it appears in the image by jquery

$(document).ready(function() { $("button").on("click", function() { //Variables para evaluar el ingreso de datos var username = ($('#username').val()); var password = ($('#password').val());...
asked by 13.05.2018 / 10:16
1
answer

Store and compare attribute value of an object in javascript

I have an object with some attributes and would like to store the value of one (the attribute is "state" and has value "closed") in a variable to compare its value by an "if" statement. What I'm looking for is doing something depending on the va...
asked by 10.05.2018 / 12:17
1
answer

Receive and display an array of C # in JavaScript

I have an array of C # that I need to show when I enter a certain page. I am making a request with AJAX to receive this data. $.post({ url: '/Home/MostrarArray', success: function (datas) { console.log(datas);...
asked by 09.05.2018 / 11:12
1
answer

How to separate the rows of a textarea in different variables? JavaScript

I want to count the data separated by a comma (,) of a row of a textarea to verify if any data is empty, if it is empty the save button is disabled. - Each row has a maximum of 3 data separated by a comma. I have a function that when you s...
asked by 20.07.2018 / 19:00
2
answers

Help! Problems filling a table dynamically with AJAX

I have tried to fill a table with data that is in a database, all through ajax. The query with the database is fine, like the sending of that data from a php file to a js file through ajax, the problem is filling the table with that data, only o...
asked by 01.05.2018 / 00:09
3
answers

Enable / Disable Checkboxes by clicking on another different checkbox using jQuery

I am developing a form that contains a checkbox list, which belong to the class .causa , likewise there is a checkbox of the class .without_cause which I intend that disables the checkboxes mentioned initially. Searching the Internet I found...
asked by 25.04.2018 / 22:58
1
answer

Improve this script (linting). Function statements should not be placed in blocks

First, I apologize if the question is very silly since I do not handle much of the subject. I'm doing this script and I test it with lint javascript I throw 2 warning that could improve    1 Unnecessary 'else' after disruption.       } else {...
asked by 28.04.2018 / 17:31
2
answers

Set a selectpicker bootstrap

Assign a value to selectpicker. I tried to do it like the documentation but it has not worked for me, the point is that I get the options directly from the DB and I want to be able to add an additional option to the records. that is to say tha...
asked by 04.05.2018 / 16:17
2
answers

ajax request sends POST data but is not received

I have this code that sends data from a form to an script external $(document).on("submit","#previewOc", function(e) { e.preventDefault(); $.ajax({ url: "assets/contentHtml/ocs/preview.php"...
asked by 18.04.2018 / 17:29
1
answer

Return arrangement of views from laravel to ajax

I have a method that returns an arrangement of views $array = [ 'desktop' => view('results-json'), 'ipad' => view('results-json-ipad'), ] return $array; How can I make that arrangement can be rendered in the view if I am acce...
asked by 30.10.2018 / 20:07