Questions tagged as 'jquery'

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
2
answers

How to create links anchors and darken the rest of the page content less the intended section?

I want to do the following: <div id="ponto0"><a href="#ponto1"> Link </a></div> <div id="ponto1"> conteudo </div> By clicking on the href="#ponto1" link, the person will be directed to id...
asked by 17.07.2015 / 08:59
4
answers

Picking up data via ajax

I need to get content from a div. I'm actually building a dynamic menu, where I define <li class="menuLi"> <div class="acao">-3</div> <div class="desc">Inicio</div> </li> Then I have an ajax that shou...
asked by 09.07.2015 / 22:13
2
answers

Form being sent twice in a row

I have this code in my JS: $('#form-sign-in').bind('submit', function(e) And in my FORM it has a Input Type Submit . When I click on it to make a simple registration, it is sending two requests. I'm using ajax ....
asked by 30.06.2015 / 20:01
4
answers

Perform function when clicking except on specific item with jQuery

I have the following code: $(".teste").click(function() { return false; }); In this div .teste I have links with class .link and I want the return false to occur when I click on the div, but that return false...
asked by 10.07.2015 / 21:52
2
answers

Validate if the string has a certain character [JQUERY]

I need to input an input string such as "Jose_Silva", how do I validate if the string has "_" in it.     
asked by 16.06.2018 / 16:54
1
answer

Validate 2 or more emails in one input

I have a registration that does email validation in the focusout event in Input. This validation works perfectly. Now there is a need to validate multiple emails within the same Input, separating by ";" and how could you handle each email at onc...
asked by 20.07.2018 / 12:27
2
answers

Join in array creating elements?

We can imagine the following array : var arr = ["a", "b", "c", "d"]; I know I can use join(", ") to make it into a string type: "a, b, c, d" , but I would like to create an element for each array item, which would be type...
asked by 26.07.2018 / 18:06
1
answer

How to make a simple text editor with jQuery, PHP and BBCode?

How can I format text in a textarea with BBCode? Type, create a mini text editor with paragraph shortcuts, bold, center, these basic options, nothing very personalized.     
asked by 12.03.2014 / 05:34
3
answers

Hide part of string

I need to display only part of the string and when the user clicks the link, show the entire string as the example in the image below.     
asked by 03.01.2018 / 23:09