Questions tagged as 'jquery'

4
answers

Help in refactoring the jquery code

$(".img1").mouseenter(function() { $(this).css('box-shadow', "inset 0 0 20px black"); }); $(".img1").mouseout(function(){ $(this).css('box-shadow', ""); }); $(".img2").mouseenter(function() { $(this).css('box-shadow', "inset 0 0 20...
asked by 03.12.2015 / 13:44
4
answers

Increase image when user clicks JS

I would like help with a problem I'm having: I'm doing something similar to a gallery, and when the user clicks on the image it has to open in full size, not the whole screen, but it covers a good part of the page. Also, I need it to center....
asked by 06.01.2016 / 14:53
4
answers

How to create a custom context menu?

When we right click on certain areas of the page the default PopUp of browsers appears: I'd like to showcase my own custom PopUps ! Is it possible to intercept the click and open a different menu?    Note: I have JavaScript p...
asked by 10.02.2016 / 16:37
3
answers

Get the name of the Image in the URL

I need to get the image name in the url. /data/data/com.intel.appx.IZICondominios.xwalk15/files/_pictures/picture_006.jpg I need you to come back:    picture_006.jpg The URL template is not fixed, every situation can change. You can...
asked by 19.12.2015 / 17:50
1
answer

Is there a problem with using HTML5 attributes instead of jQuery or JavaScript?

Is there a security problem or something like using only attributes such as required in% with% s, among others instead of jQuery? Or is it just some option to use jQuery to customize the message only?     
asked by 16.12.2015 / 05:21
2
answers

How to disable button when input file is empty / selected?

So, I have a simple image upload form that I leave button disabled. I wanted to, when I select a photo or file in the input file, the enable button! <div id="botoes" class="clearfix"> <button id="btnEnvia" name="btnEnvia" class="s...
asked by 29.12.2016 / 20:22
1
answer

What are the differences between properties and attributes in HTML?

When attempting to use this code: $(document).ready(function(){ $("#selectAllBoxes").on("click", function(){ if(this.checked){ $('.checkBoxes').each(function(){ $(this).attr("checked", true); }...
asked by 27.05.2017 / 05:58
3
answers

How to customize input file? [duplicate]

I need to customize a file-type input, but all the examples I've found seem to be tricky and do not work with multiple, rs It needs to look like this: Is there a way to do it with CSS?     
asked by 09.11.2015 / 17:56
7
answers

How do I get an element inside an iframe?

Why does .contents() not work? How to get an element inside an iframe as in the jQuery API example <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>contents demo</title> <...
asked by 29.01.2014 / 23:01
4
answers

Swap text by clicking on it to show / hide an element

I have the following example made in JavaScript, of which is a text written "See more", that by clicking on it you are enabled to see more text: JSFiddle Example Code <head> <title> Javascript demo - expand/collapse t...
asked by 20.02.2014 / 11:18