Questions tagged as 'jquery'

2
answers

doubt queries mysqli vs poo queries prepared

I have been working with the mysqli driver for several months but a question has arisen more than a question is a doubt, I would like to obtain opinions from experts on this topic. The thing is that whenever I consult the bd either to insert o...
asked by 24.08.2018 / 15:48
2
answers

Get the coordinates (X, Y) of the last letter of a textarea

I have a dropdown that I want to position in the last character of textarea , but I do not know how to achieve it, I researched how to capture the cursor position of textarea but I have not found anything useful and I have no...
asked by 16.11.2016 / 20:19
1
answer

Change position to the div when I click AngularJS

I am trying to position the box azul depending on the box to which I give click , that is, if I give click to the green box, the blue box should go down to where the green box is, not it can be at the top, it should be as if...
asked by 24.01.2018 / 22:13
2
answers

How to capture html attribute in a js variable and then assign it in css variable?

I want to capture the value of src and pass it to a CSS variable, which is in the inline style of the container parent named --img-url . The idea that I have in the html, I have this: <figure class="img-container" style="--i...
asked by 16.01.2018 / 00:01
1
answer

random code generator javascript

I found this code that generates random alphanumeric codes, I am using it to link 2 types of users, the user can only generate the code once and save it in a table with id and code, then that code is given to other users so that they register it...
asked by 22.03.2018 / 18:04
1
answer

Create PDF of Multiple Pages with JSPDF

Hello friends I am trying to create a pdf to print some tickets, I am using boostrap to format html and to create the PDF jspdf and html2pdf The problem is that I want to accommodate 4 tickets on a letter sheet, but my code only generates 1 p...
asked by 10.02.2017 / 15:50
2
answers

How do I get the ID of an element with its border?

What I would like to do is to obtain the id of an element that has a different edge, in this case its edge is red, to be able to process it in another method. Current code: if ($('#txtNombreP').hasClass('borcolo')) { alert('El elemento...
asked by 23.02.2017 / 21:24
1
answer

As valid by jquery that my message field does not contain a space?

I want to validate my textarea so that you do not write a blank space at the beginning if( $("#comments").val() == "" || $("#comments").attr("value").match(/^/s+$/)){ $("#comments").focus().after("<span class='error'>This field is r...
asked by 27.10.2016 / 12:52
1
answer

error in changing fontawesome icon

I have several buttons in a foreach in php <table class="table-mp3 center-block" data-directorio-album="ideas" id="reproductor"> <?php foreach($canciones as $id => $cancion):?> <tr class="fila"> <td> <!--...
asked by 07.08.2017 / 19:30
2
answers

Facebook login and Registration in same step

I have the following situation: The service I have is half functioning. I did not do it, so I want to modify it a bit so that I do two steps in one, that is, currently when I click on the button that I have for Facebook it only registers bu...
asked by 29.10.2016 / 04:49