Questions tagged as 'html'

2
answers

Change src of images through jquery

I'm using the Animated Responsive Image Grid plugin and want to change the images src through Javascript / Jquery. HTML code: <div id="ri-grid" class="ri-grid ri-grid-size-1 ri-shadow"> <ul> <li><a href="#"><...
asked by 22.02.2014 / 02:21
1
answer

Why am I missing input values when opening and closing an iframe using Javascript?

Context: I have an application that uses php + html + css + '"> jquery ). In it I have a page called principal.php that contains an iframe: <iframe src=pedido.php/> within calling pedido.php , as we can...
asked by 05.02.2014 / 20:02
2
answers

Move div when mouseover

How do I create the effect similar to this site: link When you hover over the div containing the image of the project, another div appears on the same side as the mouse. That is, if you move your mouse over the right the div will enter o...
asked by 13.04.2018 / 21:01
1
answer

How to clone an element with jQuery and add a new name?

I'm using the jQuery CloneYa plugin. to clone elements of a form with jQuery, but it is a bit limited, I wanted to clone the inputs but I need to increment the name when done, for example: <input type="text" name="produtos[qtd][1]"...
asked by 17.03.2014 / 15:36
1
answer

photo album with HTML and CSS

   I have a folder on the site called PHOTOS , by clicking the PHOTOS folder I thought about putting several < article > sharing each photo album type: < article > album de fotos 01 < article > < article > al...
asked by 09.03.2018 / 14:52
1
answer

How to execute PHP file from function in JavaScript?

I have the following structure for registering a new MySQL database account (register.php): <?php $con = mysqli_connect("meu_host","meu_user","minha_senha","banco"); mysqli_query($con,"INSERT INTO contas VALUES (" + $id + ", " + $pass...
asked by 25.03.2014 / 04:09
5
answers

Autofocus position the cursor at the end

When I generate a input having a set value ( value="teste" ) and set the autofocus="true" , the autofocus returns the cursor at the beginning of the content: <form> <div> <input type="text" nam...
asked by 12.04.2018 / 14:30
1
answer

How to prevent an Input Required from starting with the CSS style: invalid

When I have a input required that has some CSS style when it is :invalid , even before the user interacts with input it already becomes stylized as invalid. How can I avoid this? See the example: input:invalid {...
asked by 05.09.2018 / 21:13
1
answer

How important is it really to validate codes by the W3C?

I understand that validating the code can be important and especially help those who are starting to correct errors and become more informed about obsolete elements in current versions of the languages. But how much should I worry about valid...
asked by 24.10.2017 / 15:05
3
answers

How do I bind events to dynamically created elements and pass parameters?

I have a table that is generated via ajax and a certain column generates a link. As it was implemented, it currently writes a html with javascript intrusive. Something like below: return "<a href=\"#\" id=\"detalhe-nota-" + record.dat...
asked by 25.11.2015 / 19:34