Javascript to capture id values for links clicked

Imekamilika Ilichapishwa Dec 22, 2014 Kulipwa wakati wa kujifungua
Imekamilika Kulipwa wakati wa kujifungua

I have a page that uses Javascript to display two links overlaying the video at the end ... I need to know which of the two links ("HERE" or "THERE") are clicked on, the id value of that link, and pass that information back to the Javascript on the same page. View the source here:

[login to view URL]

and look for "raw":

raw: "Click <u><a style=\"color:#ffffff;\" href=\"#\" id=\"" +j+ "\">HERE<\/a><\/u> to find out ... or <u><a style=\"color:#ffffff;\" href=\"#\" id=\"" +k+ "\">THERE<\/a><\/u>",

I will need to know if id j or id k is clicked and what is the value of the id clicked when it is clicked.

Possible values for j are 1 and 3. Possible values for k are 2 and 4.

Ideally you will replace the following code with an alert that prints the name of the id for the link clicked and the corresponding value.

alert(i + ', ' + j + ', ' +k);

Thanks.

JavaScript jQuery / Prototype

Kitambulisho cha Mradi: #6896386

Kuhusu mradi

9 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

Imetuzwa kwa:

selvakarthik21

It is more simple.... just add an onclick event for the hyperlink and make it as like onclick ="javascript:ClickedElement('i', [login to view URL])" here 'i' ll be passed for first hyperlink and for next hyperlink 'j' will be pas Zaidi

$10 USD kwa siku 0
(Maoni 19)
4.8

9 wafanyakazi huru wanazabuni wastani wa $22 kwa kazi hii

freshjah

I can complete this rather quickly for you. I can begin right away and complete the project to your expectation.

$25 USD kwa siku 1
(Maoni 28)
5.6
gracefulwork

hello, i am interested in this project. if you can start chat please. javascript expert here. _.

$25 USD kwa siku 1
(Maoni 30)
4.6
qualifydeveloper

A proposal has not yet been provided

$35 USD kwa siku 0
(Maoni 15)
4.5
phpdeveloper11

over 10 years experience in javascript, ajax, jquery, php, mysql, and much more. so basically you want to get value of j and k and it can be 1 ,3 or 2 or 4 for k lets talk more. I can do this via jquery . see my Zaidi

$30 USD kwa siku 0
(Maoni 5)
3.1
realQuality

Hi there, I’d like to be considered for your project. I’m a strategic developer with a strong background developing various web related projets based on PHP. Whether you need a troubleshooting or development from scr Zaidi

$15 USD kwa siku 0
(Maoni 3)
2.9
hsripathi

Hi This is Sri . I have 6 years of experience in web development and working as web developer for the the one of leading commercial banking product in USA . Since im working in web development i have very good experi Zaidi

$10 USD kwa siku 1
(Maoni 2)
2.6