Questions tagged as 'javascript'

1
answer

How to display a modal form in SEMANTIC UI

I have a button on the information or help form (the red button with the "i") I am with semantic ui and according to the documentation I can generate a modal defining the following: <div class="ui modal"> <i class="close icon...
asked by 18.07.2017 / 02:19
1
answer

Learning to use firstElementChild

Previously I've been doing a table with Jquery, in which I have complicated, in my code, I want to delete or add a row, tell me the number of the row that made this function (add or remove), for that the delete function already tells me, since t...
asked by 26.07.2017 / 16:37
3
answers

Know the string that is most repeated in array

Assuming I have an array: var arr = ["YB | Yazmn", "PdH | Soul's", "YB | Infx," "PdH | Jvoo!", "YB | FK@2"]; In this array they are just strings, and in my context (what I want to achieve) what is before the | are ' clans ', in this...
asked by 18.07.2017 / 04:38
2
answers

How to format a date of type Date () and add a number of days depending on a format entered?

Good afternoon everyone, I would like your valuable help to be able to do a function that adds me the days to any date entered by the user, I have been looking for a good time on the web but the only thing that appears is to add days to the c...
asked by 14.03.2018 / 23:07
1
answer

Copy to clipboard with delay

I use this code to copy the clipboard: <script type="text/javascript"> function copiarAlPortapapeles("p1") { var aux = document.createElement("input"); aux.setAttribute("value", document.getElementById("p1").inn...
asked by 30.08.2016 / 10:00
1
answer

Problem with Affix plugin from Bootstrap

Well, the plugin does not work for me. The truth is that I do not know what to try, because in all the tutorials I've seen they put everything the same and it works for them but not me. I've even copied the code from those tutorials to a new pro...
asked by 26.09.2016 / 22:03
1
answer

Get IDS with Drag & Drop

I have this code that makes a drag & drop that I pulled from the Javascript page, it works fine. I just have a problem, I need the ID of the div where it fell. I did this but it does not work, I get undefinied the grid ID. function dragstar...
asked by 02.08.2017 / 18:15
1
answer

Change FullCalendar resources

I'm making a calendar, using the "timeline" view of FullCalendar . What I want to do is change the "resources" in a dynamic way, since I already have a view of Students and the Projects view, each with its corresponding events. I tried to do...
asked by 10.08.2017 / 15:19
2
answers

Enable input dependent on a chekbox

The modal shows data that is retrieved by a query and I am filling it with a for cycle. With several tests that I did I could get true or false which is the value of the checkbox but what does not change is the state of the input to enable or...
asked by 15.08.2017 / 20:44
1
answer

Remove null or empty values from a JSON Object in Google AppScript

I am analyzing information within a Google Sheet through Google App Script, through the active total range of the Google Sheet I obtain a javascript object of type multidimensional I transform this into a JSON object with the function JSON....
asked by 28.08.2017 / 18:22