Posts by Kim Hanneman • 93 points
13 posts
-
1
votes2
answers68
viewsQ: How to hide class when clicking outside an input
I have a question with hide() and show() have a input that when activated, it must display the "result" class and when clicking outside the input it must hide the "result" class or until you click…
-
0
votes1
answer18
viewsQ: Apply javascript to ng-include
I’m using "ng-include" to add the menu on a page, it loads the menu, but the javascript stops working. I don’t have much knowledge in Angularjs. It’s like this in html: <script…
angularjsasked Kim Hanneman 93 -
0
votes1
answer43
viewsQ: Update input value with Bootstrap touchspin
I’m used a input "quantity" which multiplies the value of the input "unit value" and updates the input "total value". So far working all right. So I started using the bootstrap-touchspin : <input…
-
0
votes1
answer29
viewsQ: How to remove special character from the class obtained from a text?
I am using this code to pass the text of a label to class: $('label').each(function() { const el = $(this); el.addClass( 'pay-' + el.text() ); }); However, I need to use words with accentuation,…
-
0
votes1
answer31
viewsQ: Add class according to text by JS / Jquery
I am styling radio-button and need to add class according to the text of the button. Actually it is very simple and works with the code below, I need that instead of inserting the data-title="" be…
-
0
votes1
answer55
viewsQ: Doubt about Javascript or jquery for Collapse in viewport
I created a "advanced search" Collapse button for mobile (768px), I would like it to start closed only at 768px resolution to gain screen space. Currently starts like this: <button type="button"…
-
0
votes1
answer34
viewsA: Add class by selector only in the first tab of Tabs when loading page
I only got it with adjustment on the way: $(document).ready(function() { $("ul.nav-tabs > li > .nav-link").first().addClass( "active" ); }); Here it will include the active class in the first…
-
0
votes1
answer34
viewsQ: Add class by selector only in the first tab of Tabs when loading page
I have here a tab navigation template that consists of adding a class ".active" in the tab when you click. So far everything is perfect. However, I need the first tab to always be active when…
-
1
votes1
answer139
viewsQ: Use comma input with Bootstrap Touchspin
I’m using Bootstrap Toutchspin to mount an input, <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <div class="form-group"> <input type="text" id="P8473_QTDE"…
-
1
votes1
answer42
viewsQ: How to add and remove class according to viewport
I would like to add a class when the viewport is less than 899px and remove when the viewport is greater than that. At first my code worked, but without removing the class when the viewport…
javascriptasked Kim Hanneman 93 -
0
votes2
answers111
viewsQ: How to identify td line to mount a dynamic data-title
I’m setting up a responsive table with vertical alignment where css inserts via:content: attr(data-title); the value of the thead field(th). HTML desired <table class="table table-bordered…
-
0
votes1
answer44
viewsQ: How to enter the Table Header (th) value for a data-title
I’m creating a responsive table with vertical tabulation, but I need to create a data-title="" with the same value as the field(th). I was able to create the data-title using the following js:…
javascriptasked Kim Hanneman 93 -
1
votes1
answer310
viewsQ: Redirect to URL with input value filled
I wonder if it is possible to mount a redirect to a third party login screen with the input "value" filled? would point out something like: http://dominio.com.br/login?pt01=admin-51 the input is…