Questions tagged as 'javascript'

2
answers

Check fields and stop sending form

I have a form that checks the value of two textboxes, if they are different it shows the message that one of the fields should be fixed, but even so it sends me the information fulfilling another class, here my code: This is the one that comp...
asked by 18.10.2017 / 02:45
2
answers

Fit text inside a button

CSS I have a button that has a pretty long text: When the screen changes size (becomes smaller), it hides part of the text: The idea is to adjust the width and deploy in several lines (the ones you need) without hiding anything...
asked by 16.10.2017 / 15:16
1
answer

Is it necessary to import md-autocomplete in Angular 1.5.8?

This is my first project in AngularJs and I'm trying to create a filter with the md-autocomplete field but nothing appears on my page. When writing the label I do not appear in suggestions the package md- as if what happens to me with ng- or...
asked by 18.10.2017 / 15:06
1
answer

Encrypt in javascript and decrypt in php

I have the following question about this php code: <?php class Encrypter { private static $Key = "dublin"; public static function encrypt ($input) { $output = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5(Encrypter...
asked by 14.09.2017 / 19:56
3
answers

how to validate that it is only a minimum of one digit and maximum two digits'

Good morning, everyone. I have a temperature field and only at least 5 degrees and maximum 30 degrees. What they see is my validation but not the quantity. They could help me. <label for="rep_legal">Temperatura</label>...
asked by 13.09.2017 / 23:12
2
answers

How can I make chains, with Java or JavaScript? Help!

Hello Good morning to all, what happens is that I want to capitalize some chains with JavaScript, java or CSS, the latter with CSS and try with the property text-transform: capitalize; and it did not work, they only change with the other propert...
asked by 03.10.2017 / 15:04
2
answers

How to store part of a url and when you click add to the rest of the link and open the page?

I am new to js and I hope for a solution. I have several urls and they all start with link , now I want to store this as a first part and the rest in the links something like this: Javascript=<br> var **base**= "https: // 2.bp.blogsp...
asked by 06.10.2017 / 12:19
2
answers

Clone html elements

How can I clone html elements and be able to change their properties independently? I tried this: function clonar(){ var c = document.getElementById("about0"); var clon = c.cloneNode(true); clon.style.width = "1000px";...
asked by 10.09.2017 / 17:26
2
answers

Uncaught TypeError: Can not read property 'post' of undefined

My code so far: <p><script language="javascript"> function funcion(){ var a ="field_1"; var b ="field_2"; var c ="field_3"; var d ="field_4"; var e ="field_5"; var f ="field_6"; var g ="field_7"; var...
asked by 30.08.2017 / 09:34
3
answers

Show error message in a span of a form in javascript

I made a validation but I want the message to fill in all the fields to be displayed in a span with javascript: function validarformulario(){ var nombre,correo,compañia,expresion; nombre =document.getElementById('nombre').value; correo=docu...
asked by 29.08.2017 / 19:08