Questions tagged as 'jquery'

1
answer

Load javascript file only on one page

I'm not sure what to do, but I'm not sure what to do. Next, I have a system inside a Gentelella template, and by default it loads several javascript files at the bottom of the page. My code, for always repeating the beginning and end, I h...
asked by 18.08.2018 / 23:58
1
answer

Mounting an HTML table from another records with JQuery and C #?

I need to compose / generate a new table in html where the new records will come from a selection of <input type checkbox> in another table in the same html page displayed in a modal, see image. Once the user clicks on import, you...
asked by 08.07.2016 / 19:48
2
answers

Function returns a string in place of a promise

The code below returns a promise: function getDealerships(region) { return $.ajax({ method: "GET", url: "/api/v1/dealerships?region=" + region }); } So I can wait for the server response and process the result: var...
asked by 28.06.2016 / 13:37
2
answers

Passing variable in jQuery within Ajax

I have the following Form: <div class="row" id="importar"> <form id="convidados"> <input type="hidden" value="<?php echo $this->uri->segment(4); ?>" id="id_cliente" name="id_cliente"> <div i...
asked by 23.12.2016 / 15:03
2
answers

Set click event to an element that was inserted via AJAX after page load

I'm developing an instant search system with jQuery, Ajax and PHP. I created a navigation system for the keyboard arrows in the resulting search options. It's running smoothly. But what I want to do is that when the 'enter' keypad is pressed on...
asked by 26.04.2016 / 20:38
1
answer

Insert HTML string on page with fade in

$("body").append('<div class="shadow-full"></div>'); But it appears at once, wanted to have an effect for it to appear more smoothly, can you do that?     
asked by 18.12.2016 / 20:09
1
answer

How to convert px into vh and vw in JavaScript?

I want to convert px into vh and vw in JavaScript, how can I do that? example 23px = valued vh or vw     
asked by 13.03.2017 / 00:20
2
answers

Sub-menu takes up while taking Javascript mouse

I'm developing a web application and when I hover the mouse over the Enter / Register it shows me a submenu  with some links, but when I go to one of the submenu links, the submenu disappears, how can I solve this problem? $(document).read...
asked by 02.02.2018 / 20:51
3
answers

How to Include and manipulate local JSON file?

I use JSON data to create the <options> of a <select> : jsonOptions.forEach(function(item) { var option = document.createElement('option'); option.text = item.description; option.value = item.prod...
asked by 12.01.2018 / 13:28
1
answer

Chosen Jquery: remove selection when typing DEL

In the example Chosen - Allow Deselect on Single Selects is implemented the possibility of deselect the selection. But the same only works with the Mouse, that is, with the keyboard has not (not discovered) how to remove the selection. For...
asked by 13.01.2017 / 22:15