Questions tagged as 'javascript'

4
answers

Hiding div by jQuery

I have the following code snippet in jQuery: $('#btnFiltros').click(function () { if ($('#divFiltros').css('visibility') === 'visible') { $('#divFiltros').css('visibility', 'collapse'); $('#divFiltros').css('display', 'none...
asked by 04.10.2016 / 15:54
2
answers

How to make an implode to remove other characters besides the + (plus) sign with JavaScript?

I have this variable: 10 + 20 + 30 + 40 + 50 = 150 . I want to know how I can use implode() of JavaScript to remove anything that is in front of each number, it can be any sign or special characters, this string can also have sev...
asked by 28.10.2016 / 20:54
3
answers

Is there a way to decrypt MD5 in php? [duplicate]

Is there any way to decrypt md5 in php ? I need to decrypt the value that comes from a cookie to pick up user information     
asked by 14.03.2016 / 19:07
4
answers

How to make the event 'focusout' of an input?

I want to make an input appear when I click on the label , when I click outside the input, that is, focus on it, I would like it to disappear. HTML: <form action="/" class="search"> <fieldset> <label for="pesquisa...
asked by 21.01.2016 / 16:25
1
answer

Get "child" element from a DIV

I have seen several examples of how to do this here in the stack, but I do not know why the answers do not clarify much, then I would ask again how I could use JS to get the tag <A> of the following DIV, REMINDING that my code is...
asked by 05.04.2016 / 09:02
2
answers

Access variable inside and outside a function

Is it possible to access a variable within a function out of it? I would like to use a variable that was created in a function outside of it, but without returning it to return of the function. In PHP we can do this $variavel = 12...
asked by 22.02.2016 / 07:06
2
answers

Enter only letters and periods

I am developing a page with a login and password that searches the data in the company's AD. I'm using PHP and I need to somehow only allow letters and period (.) In the login field. I'm using the script below, it's pretty basic but it works in...
asked by 28.08.2015 / 19:35
3
answers

Create variable from string

Suppose I have: var develop = 'confirmName1' And I want to create a new variable from the value of the variable develop ("confirmName1"): var 'confirmName1' = 'valorDaNovaVariavel' alert(confrirmName); // Retornar: (String) valorDaNovaV...
asked by 19.10.2015 / 01:45
1
answer

Can I write ajax and javascript together? [closed]

Is there any problem of writing javascript and ajax together because both are written inside the <script></script> ? tags You're connected to this issue Can I for example inside the tags write a function in javascript and...
asked by 01.10.2015 / 18:08
3
answers

How to return the input position number inside a form?

I'd like to know how do I retrieve the input position with javascript when it's clicked. When I click on the first input, it would return the value 0 ; In the second input, the value 1 , and so on. The final goal is to be able to...
asked by 08.01.2015 / 19:59