Questions tagged as 'jquery'

1
answer

Function authorizing or not submitting form

I'm trying to execute a function in the form submit, it works correctly, however if I return true I need the form not to be sent. It's being done this way: $('#FornecedorNovo').submit(function (e) { var url = "/Fornecedor/Verifi...
asked by 21.09.2018 / 21:13
1
answer

Alternative to $ .html (''); to clean a div in Jquery

I'm having problems with caching on a page since there are three calls in the event of .change(); 3 input[type='select'] asynchronous with jQuery , but when I redo the first select , for some reason it gets cache of t...
asked by 21.09.2018 / 00:06
1
answer

JQuery to swap small

Quick question I could not find anywhere .. How do I change the text of a small? I'm trying with the same code I used to change a text once, I think the problem is in the selectors, but I already tested with all of them and did not roll. I...
asked by 21.09.2018 / 22:37
1
answer

How to configure the Summernote editor to display a web page inside the window?

Good morning, I wanted a little help and tips to make the text editor summernote open a web page, for example in a page I'm typing the HTML normally and click to see the code, it would appear the page ready. example:     
asked by 16.08.2018 / 15:10
1
answer

How to put a ui-accordion with another ui-accordion inside?

How do I uniquely identify the ui-accordion , the script is not loading? Javascript: $( function() { $("#accordion_search_item1,#accordion_search_item2,#accordion_search_item3") .accordion({ collapsible:true, hea...
asked by 18.09.2018 / 21:29
2
answers

JQuery to add element in div function.append

Goodafternoon,I'mtryingtoaddadirectelementtoadiv.Butapparentlythe.appendfunctionneedsadivandanotherelement.Theproblemisthattheelementthatcomesbeforeisvariableandmyiconshouldnotbe.Eventhoughtestingthis,mycodedidnotwork.<script>$(".card VI"...
asked by 19.09.2018 / 20:24
1
answer

Convert jQuery to Typescript

I'm having several problems converting this snippet of code with jQuery using only Typescript. function addTourOverlay() { if ($('#tour-overlay').length === 0) { $('body').prepend('<div id="tour-overlay"></div>')...
asked by 18.09.2018 / 16:22
2
answers

Jquery Validation only after dropdown is selected

I have a dropdown and I want to validate, make it mandatory only if a checkbox is checked, otherwise it is not required I tried to do according to JSFiddler link <form action="#" method="post" id="Form"> <input type="checkbox" id...
asked by 17.09.2018 / 22:56
1
answer

Use drag and drop to position an image

My question is the following, I have a page of content posting and in this page, at the end, I have a field of photo upload to be part of the content ... But what I wanted is for the user to position the photo according to his need, similar to W...
asked by 06.08.2018 / 06:04
3
answers

Restart the count if you exceed the options

This question will probably be answered in less than 5 minutes from so easy, but I'm breaking my head ... I'll simplify a lot here, but I think you can understand: I create elements by javascript, each has its background color, there are 8...
asked by 06.08.2018 / 19:33