Update jquery version

Warning: You shouldn’t replace core jQuery version, especially in the admin panel. Since many WordPress core functionality may depend on the version. Also, other plugin may depend on the jQuery version added in the core. If you are sure that you want to change the core jQuery version, in that case you may add the … Read more

$ not defined using jQuery in WordPress

You can wrap your javascript inside a self-invoking function, then pass jQuery as an argument to it, using $ as the local variable name. For example: (function($) { $(document).ready(function(){ $(“ul.vimeo_desc_feed li a”).click(function(){ alert($(this).attr(‘href’)); return false; }) }); }(jQuery)); should work as intended. If I remember correctly the WP-supplied version of jQuery (the one you get … Read more

How do I send this form's output to a new WordPress page?

It’s better to use Iframe in this case. Here is how I will do it. Do you really need the submit button? in this case I do it without submit button, you can change it to your needs. This example codes can be added to your WordPress page through Text Tab on editor <style type=”text/css”> … Read more

Check if array is empty or null

As long as your selector is actually working, I see nothing wrong with your code that checks the length of the array. That should do what you want. There are a lot of ways to clean up your code to be simpler and more readable. Here’s a cleaned up version with notes about what I … Read more

$.focus() not working

Actually the example you gave for focusing on this site works just fine, as long as you’re not focused in the console. The reason that’s not working is simply because it’s not stealing focus from the dev console. If you run the following code in your console and then quickly click in your browser window … Read more

Animate element transform rotate

As far as I know, basic animates can’t animate non-numeric CSS properties. I believe you could get this done using a step function and the appropriate css3 transform for the users browser. CSS3 transform is a bit tricky to cover all your browsers in (IE6 you need to use the Matrix filter, for instance). EDIT: … Read more