Questions tagged as 'jquery'

1
answer

Single call to JQuery plugins?

I was thinking of something to call the JQuery plugins, I would call all the plugins on a single page, but loading them only if they are used. For example: On page X I use DataTables, then: if($(".dataTable") != undefined){ //se a página...
asked by 18.09.2015 / 22:27
1
answer

Know where the click comes from when you have multiple options

In this case: $('body').on('click', '.a, .b, .c', function(e) { ... How will I know when the click came from .a or .c for example?     
asked by 19.09.2015 / 17:02
2
answers

Search through the ID and attribute

How to search for div for example through your ID and Attribute in specific like this: <div id="Y" data-id="X"></div> that is, a code that takes a DIV with id=Y and data-id=X     
asked by 07.06.2015 / 15:07
1
answer

How to get Json for Ajax in .html?

Suppose I have a .html file that I just created in notepad with a Ajax code where I want to get the data generated by this application . I made a code here, and when I put a breakpoint in the application I realize that the...
asked by 08.06.2015 / 00:23
1
answer

How to print the contents of a page with Bootstrap and JQuery?

I would like to add a Bootstrap button to invoke the printing of content on a page, I got this example, but it works from a link, see: Example The code places the link at the top of the page, I also saw an example here, on that Stackoverfl...
asked by 15.09.2015 / 17:56
1
answer

How to put a "page" opening on a piece of the page?

In the DatePicker example, when someone clicks on input date, opens the correct calendar down. How can I do this ? In my case I have a page that only has a calendar made by me, it's a specific calendar, but I would like it when someo...
asked by 05.09.2015 / 00:53
2
answers

Get rows from a table by a value with Jquery

I have a table, with a select , in each row, and when I click a button I want to get all the items in the table where select option has value. <table id="myTable"> <span class="result"></span> <thead>...
asked by 08.04.2016 / 21:35
2
answers

How to display / hide fields according to selection?

Follow the code: function exibir_ocultar(val){ var cpf = document.getElementById('cpf'); var nome = document.getElementById('nome'); var cnpj = document.getElementById('cnpj'); var razao = document.getElementById('razao...
asked by 26.10.2016 / 00:19
1
answer

View week only with Fullcalendar events

The fullcalendar has the prev and next button that moves forward and returns the weeks, if you get ahead it will show the weeks infinitely, if you return too. I need a function that allows you to display only the weeks that contain marked eve...
asked by 17.12.2015 / 12:38
2
answers

How to return a part of a string (an html element) in php?

I am making a "technical resource" to be able to return the status of the SEFAZ servers issuing invoices using PHP. For this, I have so far the code below: function get_content($URL){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNT...
asked by 23.12.2015 / 03:15