What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-15 15:15:11
wordpress ajax url
<?php add_action( 'wp_footer', 'my_ajax_without_file' ); function my_ajax_without_file() { ?> <script type="text/javascript" > jQuery(document).ready(function($) { ajaxurl = '<?php echo admin_url( 'admin-ajax.ph... Add solution -
Javascript 2022-02-17 15:50:02
wordpress use jquery in functions.php
I know what you mean about the tutorials. Here's how I do it: First you need to write your script. In your theme folder create a folder called something like 'js'. Create a file in that folder for your javascript. E.g. your-script.js. Add your jQuery scr... Add solution -
Javascript 2022-01-22 18:50:36
VM1188:1 Uncaught TypeError: $ is not a function at <anonymous>:1:1
There are quite lots of answer based on situation. 1) Try to replace '$' with "jQuery" 2) Check that code you are executed are always below the main jquery script. <script src="http://code.jquery.com/jquery-1.11.3.min.js"><... Add solution -
Javascript 2021-11-20 22:13:12
Wrap the last word of a paragraph in span tags using jQuery
jQuery(document).ready(function($){ $('p').html(function(){ // separate the text by spaces var text= $(this).text().split(' '); // drop the last word and store it in a variable var last = text.pop(); // join the text back and if it has mo... Add solution -
Javascript 2021-11-13 08:32:14
how to show selected value in select box using jquery
jQuery(document).ready(function() { jQuery("#carm3").change(function() { if (jQuery(this).val() === 'other'){ jQuery('input[name=other_interest]').show(); } else { jQuery('input[name=other_interest... Add solution -
Javascript 2021-11-12 05:08:13
mysqli_real_escape_string use with ajax
jQuery(document).ready(function($){ // hide messages $("#error").hide(); $("#sent-form-msg").hide(); // on submit... $("#contactForm #submit").click(function() { $("#error").hide(); ... Add solution