Questions tagged as 'jquery'

1
answer

Handle exception when doing replace of string via JavaScript

I created a simple JavaScript function to replace any string with a link within an area in my html. Until then I pass some parameters and this function does a replace in my html and inserted the links as desired. But now I need to handle some...
asked by 28.08.2015 / 18:37
1
answer

Error writing IF and Else in jquery [duplicate]

I'm starting to venture into the development world now and hit a question when using IF and Else. The code below is OK <select id="course_list" > <?php $my_query = new WP_Query('tribe_events_cat=petroleo-e-gas'); ?>...
asked by 27.08.2015 / 09:54
2
answers

Error caused by line break in append

In jquery, if I enter the following code, the error: variavel.append('<div class="qualquer"> <div class="subdivs"> conteudo da subdiv </div>...
asked by 31.08.2015 / 23:03
1
answer

Validation of URL parameters

I would like opinions on an issue, maybe even simple, just to find out more ways to do this. The situation is as follows: NOTE: I use in this example .NET Framework 4.0 with a lot of Javascript, I only use Code-Behind to get the QueryStrin...
asked by 19.10.2015 / 14:36
1
answer

Click button zoom in to show the entire country (Brazil) on Google Maps

Hello, please help me with an example of how to do when the user clicks a button next to the map to have the map zoom in to show the entire country. I could not make a practical example. I think with this information you can understand what I...
asked by 19.10.2015 / 19:43
1
answer

Change tabs via Modal bootstrap

Thanks to our colleague DontVoteMeDown, I can change button tabs through this solution tabs with jquery . But when I try to change the tabs for Bootstrap modal, I can not. I have the following code: $(function() { $( "#tabs" ).tabs();...
asked by 16.10.2015 / 15:47
1
answer

Delete session value of a variable

I have a reset button to delete values from a form. I want to delete the session variable in PHP and I can not do it, it can be by jQuery. This is the code I have: document.getElementById("pesquisa").reset();     
asked by 04.09.2015 / 12:19
1
answer

How to manipulate an element with jQuery when they are at the same hierarchy level?

echo '<div class="servico">'; ?><p class="servico_title opensans fw700 fs16"><?php the_title() ?></p><?php echo '<img src="'.UP.'/2015/08/enfeite_serv.jpg" width="100%" height="auto" class="enfeite_serv"&g...
asked by 16.08.2015 / 21:43
2
answers

jQuery - create a jQuery element (create a tag) from a string

I have made to create an element (a tag) the following code: var b = $('<div>').css('color','red'); In this way above I will have a div with the text red color ok, now it is the following. I'm getting a STRING that contains all...
asked by 14.08.2015 / 20:38
1
answer

Print another page with javascript

I have a system which shows the result of a query. On this page you have the print button, but I need to make clicking the print button print another formatted page without having to open it for it, or if it is the case, do not even download, op...
asked by 14.10.2015 / 16:22