Questions tagged as 'jquery'

2
answers

Good practices when creating elements with jQuery

When I need to create elements in the DOM using jQuery, I usually use the following syntax: $('<div>').addClass('minha-div').attr({id: 'id-da-div'}); However, what I usually see in online tutorials is a bit different. Usually it is:...
asked by 17.07.2014 / 14:16
1
answer

Has anyone ever been able to use jQuery File Upload?

I refer to this link link. The documentation is very vague. I already changed the "action" of the "form" but without success. Html5 form: <form id="fileupload" action="bloco_img_upload.php" method="POST" enctype="multipart/form-data">...
asked by 22.04.2014 / 17:43
3
answers

Create markup with predefined symbols

I did not know how to choose a specific title in the face of my doubt, so it was this very vague way. I've been trying to do the following for a while: Assuming I have <p> : <p>Olá, $está tudo$ bem?</p> I ne...
asked by 15.11.2015 / 23:05
1
answer

Div Can Be Dragged

I would like to allow users to move some things from my site. Of the type, the user could drag the menu somewhere else to better position the reading.     
asked by 17.05.2015 / 00:45
2
answers

How can I get the first element of each parent element?

I have a structure like this: <div class="container"> <span class="iconset"></span> <!-- primeiro elemento --> <span class="iconset"></span> </div> <div class="container"> <span cl...
asked by 24.12.2013 / 20:12
6
answers

How to select all "empty"

Is there any way to select all the empty elements of a page? For some reason that I can not explain, the code below does not select inputs without text on my page: $("input[value=''], select[value=''], textarea[value='']"); I know I can...
asked by 25.02.2014 / 19:29
2
answers

How to traverse string and replace ** with b / b

Lately I have used some systems that have the following function, when writing a text between ** it turns this text in bold for example: July * henrique * dos Santos Expected result will be: Julio henrique dos Santos I thoug...
asked by 01.11.2018 / 21:14
2
answers

Everything I do with JQuery I can do with JavaScript?

I have a serious problem that is: I'm learning jQuery before JavaScript, and I think now I'm going to get it wrong, put my sites on jQuery only, and I'm realizing it's a bad practice. But returning the question: Everything I do with jQuery I...
asked by 05.06.2017 / 13:32
2
answers

Open DIV after clicking a Button with Link

I would like to know how to create, in CSS3, Javascript or Jquery, a button that, upon clicking it, reveals a DIV on it, and that a new page with target _blank is opened. I've done enough research, found some things, but nothing concrete. Of...
asked by 14.11.2014 / 19:22
2
answers

How to get a loose number in my HTML?

Consider the following code: <span class="test"><span style="color:green">Teste</span>:</span> Text<br><br> <span class="test"><span style="color:green">Mais</span>:</span> Text<br...
asked by 22.04.2014 / 00:49