Questions tagged as 'jquery'

1
answer

Run a PHP Paging with JQuery

I made a script that imports images from a CMS for Wordpress and does not overload the server and the import machine. This system has a page that displays 20 elements per page: link I would like to know if there would be a way for the jq...
asked by 20.01.2015 / 16:49
1
answer

InputMask for DisplayFor

I use jQuery Inputmask to add masks to my TextBox. But I need to add a mask when listing these fields (phone, cpf, etc). I use DisplayFor to list, but the mask does not work with it. Code in my View: Cargo: @Html.DisplayFor(...
asked by 22.01.2015 / 13:13
1
answer

Displaying date in date field

I'm trying to display the date of the day in the date field: <input type="date" name="dia" />. Being the date I picked up via JS: var Hoje = new Date(); var data; Hoje.getDate(); Hoje.getDay(); Hoje.getMonth(); dia = Hoje.get...
asked by 24.01.2015 / 03:03
1
answer

Take height from one div and apply it to another div

I'm using the excellent FullCalendar plugin to add a calendar to a page of the site I'm doing. It is very dynamic and the plugin calculates its size as soon as the page loads, keeping its size proportional to the div parent it is in....
asked by 30.01.2015 / 18:26
1
answer

Modify a button's property when closing modal bootstrap

I have a table with a button to add a comment about the item on that row. In this button I have a class = adicionar that allows me to apply to all with this class the action of opening a bootstrap modal. My problem is that I can not ident...
asked by 16.03.2015 / 21:12
2
answers

Limit the amount of results that appear in the jquery-iu autocomplete

I'm using the jquery-iu Autocomplete and everything is working perfectly. But I would like to improve the script at one point. I'd like to limit the results. Because if I type A in the input, it appears INPUTS results and this is bad from th...
asked by 28.12.2014 / 05:10
2
answers

Master Detail with select2

I'm trying to make a master detail One of its inputs is Select2 , but it does not generate Select2 , because it is only generated when the script finishes reading, and the second way I did, was to do a function that calls the sele...
asked by 19.12.2014 / 18:42
1
answer

scrollTop does not work

I have a% div of% and I want it when the person scrolls about 50px, it has topoMaior . I did this with Jquery: if ($(window).scrollTop() > 50){ $(".topoMaior").css("top","0"); } And it did not roll.     
asked by 18.12.2014 / 18:11
1
answer

CSS Toggle Switch with select

I need to transition this script to use with <select> . Well, the script that works is like this      link My selections (over 88) are ONLY in this style: <select> <option value="0">Off</option> <option...
asked by 09.12.2014 / 23:43
1
answer

Upload only with jQuery.ajax and PHP

I would like to know if you can upload a file using only $.ajax({...}) without submitting submit of the form and if, like? Note: I would like to put this script in the onchange event. Obs2 .: If possible I do not want to send...
asked by 03.12.2014 / 21:55