Questions tagged as 'jquery'

1
answer

Obtain height in pixels of the browser that the user uses with jQuery

I need to obtain the height data of the user's browser. The height of the screen does not help me because in desktop computers it can be resized manually. I'm trying this: $(window).height(); But the value it returns is 258px and the hea...
asked by 13.08.2017 / 20:29
2
answers

Put logo and show user information in report with datatables

I would like to know how you could place a logo and the information of a user that performs an export of information by selecting the PDF button or the PRINT button that are jquery datatables? For the buttons I only have the following:...
asked by 16.08.2017 / 04:15
1
answer

Bootstrap manners are not shown on my div that loads all my content with ajax

I have an index with a navigation made with AJAX and thus load all the other pages within the div that has the index.php, so that the browser does not recharge. My problem is when in that div I want to load a CRUD that uses the...
asked by 27.07.2017 / 20:49
2
answers

Do not enter my .js file when loading the website? [closed]

My problem is that I am currently trying to call an onclic type function through a button, but when I click on the button in the browser console it appears that it is not defined: I miss it: Uncaught ReferenceError: siguiente_promo is not d...
asked by 14.07.2017 / 19:37
0
answers

Error saving multiple select

I have this ajax $(function() { $('#asignarConteo').on('click', function(e) { $('.widthSelect :selected[value!="0"]').closest("tr").each(function() { var ar = $(this).find(".iarticulo").text(); var u...
asked by 27.07.2017 / 13:58
1
answer

Problems cloning a div with jQuery

The .original_div is a fragment of a form, my intention is to clone it after loading the sun because the input is empty, the problem is that when I clone the div out of the function and leave it in a variable then I can only duplicate it...
asked by 27.07.2017 / 17:58
1
answer

How can I delete a cookie using jquery?

I am working on a login using cookies to save the user, but at the time of logout using jquery I want you to delete the cookie so that I have to authenticate again, how can I do that? try this line that I found on the internet: $.removeCoo...
asked by 14.07.2017 / 16:16
1
answer

Search for orders between two dates

I am generating a prototype of a page of orders, some of the data of the order is the date which income, which I get in the following way in string var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; //Enero...
asked by 07.07.2017 / 13:39
1
answer

hasClass to removeClass after addClass

I'm trying to create a function which looks for if there is a class in a body which contains the id="skin" so that when you want to change the theme of the whole page, this function does all the work without needing to change each class of all b...
asked by 26.07.2017 / 16:06
0
answers

Js file is not executed on site made with Drupal7

Simple problem. I execute this code $(document).ready(function () { $("form#user_register_form").submit(function (event) { event.preventDefault(); alert("Submit prevented"); }); }); In a javascript file for a site...
asked by 05.07.2017 / 15:06