Questions tagged as 'javascript'

2
answers

Stylize Required

Instead of appearing in that text box, I would like only the edges of my input to be red when the user does not fill them. is there any way to do this?     
asked by 04.08.2018 / 14:57
3
answers

Tags generated dynamically with ajax are not seen by jquery

I am generating a PivotTable via AJAX which in one of the TDS there is a link. <a href="#modalInserirDescontoCB" class="modal-trigger id_aluno">104490</a> The link should accomplish two tasks: Open a modal containing a for...
asked by 18.01.2017 / 18:42
1
answer

paste command in javascript

How do I paste what's on the clipboard? I researched a lot, but what I found was just copying it, not the necklace! The only thing I found about paste, did not work, which was document.execCommand("paste"); I want when the user c...
asked by 27.01.2017 / 12:19
2
answers

Is there a way to see the native JavaScript function code?

Recently I realized that there is a way to rewrite the native code of certain functions in JavaScript. For example: console.log(confirm); function confirm() { var a = "oi"; return a; } var a = confirm(); console.log(a);...
asked by 22.01.2017 / 18:37
2
answers

Add title when hovering over event

I need to pass the mouse to see the name of the event, at the moment if the name is too big I can not see, as in the example below: I'musingfullcalendartomanagemyeventcalendar,andmycodeisconfiguredlikethis:$('#calendar').fullCalendar({//puty...
asked by 10.01.2017 / 20:45
3
answers

What's wrong with my script? - setTimeOut

Hello! The script below takes an image of id assinatura and applies an effect to it when my scroll is at a certain height of the site. $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 4...
asked by 13.01.2017 / 02:24
2
answers

How do I get the value of inputs by declaring this of a [jQuery] element?

jQuery(function($){ $('#upusuario').on('submit', function(){ formulario = $(this).serialize(); Question: How would I get the input senha and confirmasenha of this form to compare them, of course without using som...
asked by 10.11.2015 / 00:44
1
answer

Help in javascript

How do I make this script run in 10 seconds ?? <script type = "text/javascript"> function simulateClick(x, y) { var clickEvent = document.createEvent('MouseEvents'); clickEvent.initMouseEvent('click', true, true, window, 0, 0, 0, x, y,...
asked by 23.10.2015 / 00:28
2
answers

How to make a link trigger a javascript function without redirection? [duplicate]

I was trying to make clicking a Link HTML <a></a> run a javascript function, I a priori had the following idea to link a onclick attribute to the <a> tag like this: <a href="#" onclick="funcao()"&g...
asked by 03.11.2015 / 16:35
2
answers

Syntax error in script variation of jQuery products

I have a script in jQuery, which basically filters the variations of Woocomerce Wordpress products and selects the desired option by adding the "selected" attribute, the big problem is, I have a button to select the variation, as you can see in...
asked by 13.07.2018 / 13:52