Questions tagged as 'jquery'

2
answers

Angular 2 initialize materialize component after obtaining data

I have a dropdown that I want to initialize with materialize in navbar.component.html <select> <option *ngFor="let survey of surveys" value="{{survey.sid}}"> {{survey.surveyls_title}}</option> </select> I get...
asked by 12.05.2017 / 07:28
1
answer

Help with jquery function

Greetings. I have this jquery that assigns the height to a div in relation to a daughter image. $(window).load(function(){ var alto = $('#bigPic img').height(); //alto de la imagen $('#bigPic').height(alto * 1.1); }); //alto div = alto imagen...
asked by 26.05.2017 / 16:13
1
answer

problems dynamic name event click inside a For not working jquery

Greetings when assigning a dynamic name does not assign the action html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximu...
asked by 19.10.2017 / 15:59
1
answer

.focus () to a tabIndex

I can not find the way to do with jquery a .focus () to an element with the tabindex property. I've seen that in old versions of jquery you can not, but is this still the case today? How can it be that a library focused on the DOM d...
asked by 16.05.2017 / 17:53
1
answer

Problem with JavaScript remove function

I have a problem with REMOVE , I currently have a dynamic table with which I add more rows and also add a link called REMOVE which should remove the row, but currently I'm not performing the function of removing, insert the row if i...
asked by 31.05.2017 / 20:25
1
answer

Problem generating an unordered list (ul) with bootstrap from javascript

The problem I have is to generate the list this presents me with 2 problems: 1. Sub-levels: From the second sub-level it adjusts to the left. The function that generates the list is recursive and creates sublevels depending on the json...
asked by 13.05.2017 / 06:29
2
answers

Uncaught ReferenceError: url is not defined in the url line: url + 'remove_contact_company.php',

function cargaPagina(pagina) { var desde = pagina * itemsPorPagina; $.ajax({ data:{"param1":"dame","limit":itemsPorPagina,"offset":desde}, type:"GET", dataType:"json", url:"Conexion_Contacto.php"...
asked by 15.09.2017 / 03:28
2
answers

Query call data by selecting a datatable AJAX field

Hello I have the following question, I call the data in my database through the current year, with the following code: <script> $(document).on("ready", function(){ listar(); }); var listar =...
asked by 14.09.2017 / 15:43
1
answer

. replace with array

I'm trying to replace a text that I have in a textarea as something is selected in a select. The fact is that what I would need is for you to erase the old text to insert the new one, but of course you can not delete all the text just a serie...
asked by 14.09.2017 / 17:57
1
answer

As I create an "a" element from a string and execute the url

I always get links similar to this, I need to execute the link to execute the redirection. I thought I would do it with location.href location.href ="http://xxx.com/index.php?x=xx"; But it would require extracting only the link...
asked by 14.09.2017 / 09:37