Questions tagged as 'jquery'

2
answers

How to sort a select combo by the options text?

I want to sort a select combo from HTML alphabetically and would like help with logic to get a function to do that, regardless of the number of elements.     
asked by 18.05.2015 / 16:01
2
answers

Paste outer html

How do I get the outerHTML of a jquery object? The following form is not working. $("selector").outerHTML;     
asked by 12.05.2015 / 16:50
3
answers

Give Hide / Show and show items content of the clicked item

I want to show / hide the div by clicking on it and hiding when clicking on another item, I'm just able to hide when clicking on another item, when clicking on it, I can not hide it. Example of how the code is $(document).on('clic...
asked by 13.10.2017 / 19:03
2
answers

Check and uncheck CheckBox items

I have the following form: <div class="dia" id="dia" data-id="1"><input id="1" name="diasemana[]" type="checkbox" class="dias_semana" value="1"><label for="1"> Segunda</label></div> <div class="dia" id="dia" da...
asked by 15.10.2017 / 21:47
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

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

Script to change player (old Jquery game)

I'm trying to make the game of the old one change the player who has the turn, I managed to make it change from 'X' to 'O', but when I try to return to 'X' and so on, it will not. Follow the code I've made so far: $(document).ready(func...
asked by 16.01.2017 / 01:20
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
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