Questions tagged as 'jquery'

3
answers

Select the Controller name using JavaScript

I have the following code and would like to add class="current" to <li></li> according to the controller I'm accessing. I want to do this to make the item stand out. <ul class="nav"> <!-- Main menu --...
asked by 24.11.2016 / 09:46
2
answers

How to check if an element has a class, or has an "active" class

I used .toggleClass() in a div , which after clicking a button, activates the class " menu-active ", if clicked again, it removes it. So far so good. But now, in addition, I need something to check if this class is active,...
asked by 28.11.2016 / 08:01
3
answers

Limit of characters in a DIV

How can I limit the amount of characters that will be inserted into a div?     
asked by 21.10.2016 / 18:30
1
answer

How to ensure that an element will have the DOM event?

Good afternoon, Today I'm facing a rather strange bug in my application: I have a field of type textarea where I type an email body and just under it a button that when clicked gets textarea content, opens a modal and inserts the same cont...
asked by 31.10.2016 / 19:56
1
answer

Space at the end of a word

I created an application in react native and it does online searches via POST. It works fine, the point is that some gadgets include a space at the end of words, eg: The user types natação , but the cell phone sends natação_ with...
asked by 28.01.2018 / 14:18
2
answers

Getting a css property with jquery

Would I have to check a css property with jquery or pure js?    Note: Using is (': visible') is not feasible for what I need. Example: var display = $('.test').get('display').val() if(display == 'block') { al...
asked by 30.01.2018 / 12:17
2
answers

SVG, Canvas or CSS? I need to make a network of circles with images that interconnect

Well, that's it. I thought of doing using SVG and bordered image but my concern is about responsiveness, on smaller devices it will get all messed up I wanted a way for lines to automatically connect to images regardless of where the...
asked by 06.03.2018 / 02:58
2
answers

How do I send data from a html table to POST form?

I have a form that contains a list inside a table tag, how do I send data from this table to the POST of the form itself? Without using hidden inputs. If possible in pure Javascript, but if there is no way it could be in JQuery.     
asked by 08.06.2016 / 18:09
2
answers

jQuery with Internet Explorer

I have this code that works perfectly in Firefox, but I can not get it to work in IE. The user can only choose 10 units in total and when he reaches 10 he displays a alert() . Does anyone have an idea or a better solution? Here th...
asked by 01.06.2016 / 13:19
3
answers

Associate values of an input to the nearest plane with jquery

I have an input range that goes from 0 a 400.000 to each step of 5.000 and I have a set of plans (50.000, 70.000, 100.000, 120.000, 150.000, 200.000, 220.000, 250.000, 300.000, 350.000, 380.000 e 400.000 ) each plan contains...
asked by 05.09.2016 / 20:32