What do you want to save?
Add Code snippet
New code examples
-
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-31 22:01:25
jquery parse html
// use for nodejs (without window) const jsdom = require("jsdom"); const { JSDOM } = jsdom; const { window } = new JSDOM(); const { document } = (new JSDOM('')).window; global.document = document; const $ = jQuery = require('jquery')(window); ... Add solution -
Other 2021-11-11 22:57:13
wordpress required post admin title field
/** ADD Validation for title */ function force_post_title_init() { wp_enqueue_script('jquery'); } function force_post_title() { echo "<script type='text/javascript'>\n"; echo " jQuery('#publish').click(function()... Add solution -
Javascript 2021-11-11 10:50:31
import jquery into angular 8
import * as $ from 'jquery' Add solution -
Ruby 2021-11-08 00:58:13
rails 6 TypeError: $(...).tooltip is not a function
const { environment } = require('@rails/webpacker'); const customConfig = require('./custom'); const webpack = require('webpack'); environment.plugins.append( 'Provide', new webpack.ProvidePlugin({ $: 'jquery/src/jquery', jQuery: 'jquery/src/... Add solution