Questions tagged as 'jquery'

1
answer

Check for the existence of an element by the Value attribute?

I basically need to check if a given div exists inside a list, the structure looks like this: <div class="content" id="divCheck"> <div class="filho" value="1"></div> <div class="filho" value="2"></div> &l...
asked by 04.01.2017 / 22:36
1
answer

Jquery or CSS - How to create an animation that flashes back to the original?

I have the following Jquery code: $(".add").click(function(e) { $(".saida").addClass("backgroundRed"); }); and the following css: .backgroundRed { color: #FFF; background: #c1272d; } It's all right, it changes the color of...
asked by 08.02.2017 / 01:51
1
answer

Uncheck other checkboxes when selecting one

Hello, I have three checkboxes in my form and would like me to select one the other two were unmarked. I tried to use some examples I found here but it did not work as expected. Here is the HTML code and Script I tried to use. Thanks to anyone w...
asked by 10.08.2016 / 20:59
2
answers

jQuery check field php database

I have the following button: <button type="submit" class="btn btn-info pull-right"><? echo $titulo; ?></button> This button sends a form action, with the data filled in. And I also have the following field: <input...
asked by 16.08.2016 / 14:50
1
answer

JavaScript Error Event definition

Good afternoon, I made a popup with jquery, and when I put it to run on element inspecte it shows an error to the following:    events: 1357 Uncaught ReferenceError: open_popup is not defined I took a look at it is talk about definition,...
asked by 05.08.2016 / 20:39
2
answers

Event on click repeating action

My code: var calendar = { init: function(org_id) { $.ajax({ url: 'http://localhost:8000/listar/' + org_id, type: 'GET', dataType: 'json' }).done(function(data) {...
asked by 28.12.2016 / 15:55
1
answer

Display fixed alert regardless of the scroll position on the page

I'm putting together a confirmation alert, clicking on the link it will appear. It's all working, however when the page is too big the alert does not appear as it goes to the top of the page. I need to make it 30px, but jquery has to identify th...
asked by 29.12.2016 / 18:22
4
answers

ASP.NET MVC input number

I'm trying to use a input with type=number , however in Chrome you're giving the value you entered should be a number. The problem is in the model state that is returning invalid, because when giving the post, it is entering Crea...
asked by 19.07.2016 / 15:43
1
answer

Automatically fill a text box with a database value

I have a form with 5 fields, and I need the location field to be populated with a database value corresponding to the Postal Code field that was previously filled in. I'm using the codeigniter framework. Follow my Form: <form rol...
asked by 27.07.2016 / 17:51
1
answer

Only call the function if you click the Parent and not the childrens

I have the following div: <div class="sub-menu"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3<...
asked by 01.06.2016 / 22:44