Closed

javascript jquery help

I have this basic jquery code but it does not work

I have this code on [url removed, login to view]

(function($){

$.[url removed, login to view] = function(){

alert('working');

}

},$);

this code on a file called [url removed, login to view]

$(document).ready(function(){

$('a').targetBlank();

});

finally on my html page i have

<a href="[url removed, login to view]">Google</a>

This bid is to tell me what is wrong with it and why it does not print working

i have included [url removed, login to view] [url removed, login to view] and jquery on my [url removed, login to view] page

Skills: Javascript, PHP

See more: what is javascript, javascript what is, javascript jquery, print plugin, jquery index, javascript document ready, jquery plugin help, document ready javascript, html javascript jquery php, print plugin html, google javascript print, print plugin jquery, jquery print plugin, code print javascript, jquery print, javascript jquery php, google alert php, basic code javascript, jquery google, html javascript jquery, alert print, php google alert, google jquery, javascript help file, ext code

About the Employer:
( 150 reviews ) United Kingdom

Project ID: #5279719

21 freelancers are bidding on average $19 for this job

rajeshsonisl

Hello, With 99% completion rate, 650+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 !!)... you can never go wrong choosing me :) I look forward to your reply. More

$43 USD in 1 day
(483 Reviews)
7.4
tlchung

let fix it now. let fix it now. let fix it now. let fix it now. let fix it now. let fix it now. let fix it now. let fix it now. let fix it now.

$24 USD in 1 day
(161 Reviews)
7.3
acesolution

Hello Sir , I am highly interested in this project please provide me a chance to work for you .......Thanks

$24 USD in 1 day
(122 Reviews)
6.7
dinastalb

Hello, I am Van Qaqi. I work with my partners Rolland, Chris and Joe at Netronian Inc., in Orlando, Florida. We have great experience with Web Development. 80 percent of our developed websites are eCommerce websi More

$86 USD in 15 days
(13 Reviews)
5.9
Champian

Hi, I am working as a freelancer website designer and developer, I have 5+ years of experience in design and programming joomla, PHP, Wordpress. Here is my profile on [url removed, login to view] [url removed, login to view] More

$24 USD in 1 day
(30 Reviews)
5.6
eComOS

Dear sir, I will complete your project within 1 and provide 100 days free bug guarantee.. I have gone through your outsourced requirement "javascript jquery help" and have analyzed that I have right credentials (Java More

$22 USD in 1 day
(63 Reviews)
5.5
binarygeotech

I'm an expert in web application development and JQuery Plugin. I can make your plugin work. Please contact me. I can tell you the reason why your code is not working. Thanks G. O. Davis

$20 USD in 0 days
(34 Reviews)
5.3
pakulin

What you want to implement? There's no any event attached for your code to be working .

$15 USD in 1 day
(7 Reviews)
4.6
pioneerb64

u have not attached any html page. but i have seen the code and found the error. you can rely on me . please check my reviews and portfolio. Waiting for your positive reply

$15 USD in 1 day
(30 Reviews)
4.6
swetapadma

Dear Sir/Maam, We have checked your code and rectified it. Kindly contact us to get the solution for it. Kindly select us for this project. Regards Sweta

$10 USD in 0 days
(10 Reviews)
3.9
anmoltech

Hello sir I am an expert in html, html5, css, php, jQuery, javascript, ajax, mysql and yii framework. Please give me a chance to work with you. Thanking you.

$24 USD in 1 day
(18 Reviews)
3.9
craigcooper

Instead of $('a').targetBlank(); do $('a').click(function() { $(this).targetBlank(); }); Thanks, Craig

$10 USD in 1 day
(10 Reviews)
3.5
diegofpr

You should check this link. [url removed, login to view] Basically, executing a function on a selector can only be achieved if: a) the function internally iterates over the results. $.fn. More

$15 USD in 1 day
(7 Reviews)
2.5
sunnylove

I think I can do it ! Please hire me :), I'm a new member in freelancer, but I have 7 year of experience about website designer and website developer ! vnusrealestate dot com this is project I was build on last month More

$15 USD in 3 days
(2 Reviews)
2.4
zainbasharat

Hi, use it like this (function($){ $.[url removed, login to view] = function(){ alert('working'); } })($); this is kind of function that is executed immediately as you are calling it by calling ($) at the end. they c More

$15 USD in 1 day
(5 Reviews)
2.4
mysticwanderer70

Hi, my name is Joe. I have seen your code, and I know where the problem might lie. Let me know if you are interested. Thanks.

$15 USD in 1 day
(3 Reviews)
2.3
enterit

You have a very simple typo in your code. I can fix it for the minimal payment - in fact, I have fixed it on my pc already.

$10 USD in 1 day
(2 Reviews)
1.6
iovar

[url removed, login to view] has a mistake. it should be: (function($) { $.[url removed, login to view] = function(){ alert('working'); } } ) ($); To call a function immediately as it is declared, you need to add a second set of parentheses, in More

$10 USD in 1 day
(3 Reviews)
1.6
rozophat

Hi, I'm Phat, a senior developer. I have many experiences in website developement. These are my website: [url removed, login to view], [url removed, login to view], www.rebelsport.com.au...I have many experience about javascript More

$30 USD in 1 day
(1 Review)
1.0
noname09

Its easy. Working code: (function($){ $.[url removed, login to view] = function(){ alert('working'); } })(jQuery) jQuery(document).ready(function($){ $('a').targetBlank(); }); The problems: (function($){ //code More

$15 USD in 1 day
(0 Reviews)
0.0