Questions tagged as 'javascript'

4
answers

Function similar to indexOf () in JavaScript

Assuming I have a string:    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget leo consectetur, condimentum est eu, convallis dolor. Aliquam fringilla et hatred to congue. Phasellus accumsan, velit in elementum porttitor,...
asked by 12.04.2017 / 18:19
5
answers

How to open a new tab in the background and redirect the current tab? [closed]

I would like to click on the link to open a new tab (but in the background - I want the focus tab to remain the same) and the current tab to be redirected. Is this possible? With the code below, a new tab opens only and the focus is change...
asked by 01.08.2017 / 21:16
1
answer

Fullcalendar- Show textbox when date is selected

What I currently have is a prompt where we enter the name of the event when the date is selected: select: function (start, end, allDay) { /* after selection user...
asked by 29.04.2015 / 16:39
1
answer

HTML5 Canvas arc () is not of the correct size

I'm developing a college work that basically consists of creating a kind of "Paint" using canvas of HTML5 in conjunction with Javascript, but I came across a problem trying to update a canvas that serves to show the current size of...
asked by 29.06.2015 / 21:04
1
answer

Problem in working with Draggable and Resizable in the same image

I've created a code and I'm having problems with it. I've individually tested both, both Draggable and Resizablee , and worked perfectly by changing the data in the input , and when updated by writing to the Database. But tog...
asked by 30.04.2015 / 00:38
1
answer

Error adding new instances to an array in Javascript [closed]

I have the following problem I have an array that adds the instance of an auxiliary object to the instance of an HTMLElement, but only the last element is being added, I tested it in the Chrome, Chromium, Opera and Mozilla Firefox browser and in...
asked by 13.04.2014 / 23:51
2
answers

Validate all inputs in SUBMIT

I have a function that validates my fields in the focusout event, however, I now need to go through all the fields in submit of form , I know I should use for , but I do not know how. > $("input[type='text'],textarea")...
asked by 20.10.2017 / 13:13
2
answers

Select parent element with javascript (without Jquery) [duplicate]

I have two elements and would like to select the parent element using only Javascript, does anyone know of any way? <tr> <td id="filho"><td> </tr>     
asked by 06.10.2017 / 21:36
2
answers

Progress bar plugin with steps

Does anyone know of any Javascript or CSS plugin that can generate this type of progress bar?     
asked by 01.11.2017 / 17:49
4
answers

JavaScript / JQuery - Means of removing the contents of a TD

How can I remove the contents of a td , for example this code: <table id="tblItens" width="400px"> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> </table>...
asked by 14.11.2017 / 16:16