Questions tagged as 'jquery'

4
answers

How to check if a String completes another?

I would like to know if there is any function or operator that can check if a String looks like another in javascript for example: var str1 = "joao foi ao mercado"; var str2 = "joao fo"; What I need is to compare the first with the second o...
asked by 14.08.2017 / 20:55
3
answers

How to change the input color using jquery Validate?

I'm implementing a jquery form, and I want it when the validate executes and the class error is appended to the label leaving the red font, I'm going to send a picture representing how I want it. <html> <head> <...
asked by 28.10.2016 / 16:28
3
answers

How to get element above Jquery?

I have the following elements: <p class="id-task">5</p> <p class="status-change"> <i id="test-task" class="fa fa-flask fa-lg" aria-hidden="true"></i> </p> I'm trying to get the number of <p cla...
asked by 02.12.2016 / 17:20
1
answer

How to do the Facebook content upload technique?

How does Facebook do this by loading your page? It loads the content bit by bit and not all at once like most sites, StackOverflow is an example that loads. How do you call this loading technique? (if you have a name) How can I do it in Ja...
asked by 19.02.2017 / 22:50
2
answers

Input mask with leading zeros

I have a numeric type input, which should only receive numbers (obvious) . However, some browsers let the user type alphanumeric characters. But the problem is not just that. I need to display 0 on the left as long as the input value h...
asked by 10.01.2017 / 20:04
2
answers

Running a script through the 'name' attribute does not work

Follow the code: <select class="form-control" name="dd_medidaAplicada" id="dd_medidaAplicada"> <option value="0"></option> <option value="cancelada">Advertência Cancelada</option> <option value="escrita">Adv...
asked by 17.04.2017 / 15:26
2
answers

Jquery ignoring houses on the right

I set up the function below, for validation of values in two fields, one automatic (comes from the bank) and another one entered by the user. What happens is that apparently he ignores the houses to the right of the value. For example: functio...
asked by 19.06.2017 / 14:24
3
answers

How do I lock a responsive page in portrait?

Is there any solution to display the web page always in portrait (portrait) on mobile devices, even if the user rotates to the landscape mode? That is, always locked in portrait.     
asked by 13.03.2014 / 20:42
2
answers

How to avoid function calls

I have a call on my systems for a javascript and it always worked. It is a function to show / hide a loading image for the user. The problem is that sometimes I have to call this function in a user action of a select field, for example,...
asked by 13.03.2014 / 14:57
2
answers

How to change the text of the OK button for Alert?

Personal I need an Alert with the "Confirm" button instead of the "OK" button. How do I do this?     
asked by 27.03.2014 / 13:05