Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,200,591 members, 7,975,317 topics. Date: Monday, 14 October 2024 at 10:02 PM |
Nairaland Forum / Science/Technology / Programming / See The Javascript Code That Is Turning My Brain (2955 Views)
The Javascript Thread / Help On Html Code That Displays Form Details After Submitting Form / Help Me Keep My Brain In My Skull! Solve This Logic! (2) (3) (4)
Re: See The Javascript Code That Is Turning My Brain by lillylove2(f): 3:37pm On Jun 27, 2016 |
Locotech dueal ANTONINEUTRON sleepingdemon Joshuabase wisemania spikesC Booyakasha crotonite splashz hollyfat Kodejuice teampregar Thanks everybody. It's now working. I really appreciate the help |
Re: See The Javascript Code That Is Turning My Brain by michaelwilli(m): 5:51pm On Jun 27, 2016 |
lillylove2:You can pass the id as an argument to the MyId function as below <a href='#' onclick='MyId('<?php echo $id;?>') id='<?php echo $id;?>'>Click me</a> Or u cn use jquery to retrieve d value of the id attribute $('#id').attr('id') U cn pm me if it doesn't work for you. Just willing to help 1 Like |
Re: See The Javascript Code That Is Turning My Brain by sname00(m): 12:57pm On Jun 28, 2016 |
Joshuabase: PHP means ==> PHP: Hypertext Preprocessor, yeah I know funny. there's PHP inside PHP.. sort of an infinite loop. |
Re: See The Javascript Code That Is Turning My Brain by danvery2k6(m): 11:13pm On Jun 28, 2016 |
Maybe You've gotten an answer, maybe not. But perhaps this may help someone else HTML5 has this dandy attribute called data-* to which you can attach anything ex. data-id You can add this attribute to any html tag and get its value in javascript. Ex.
Then in your Javascript, you can do this (I'm using JQuery here because I'm not good with Javascript)
|
Re: See The Javascript Code That Is Turning My Brain by CodeHouse: 10:52am On Jun 29, 2016 |
Im just seeing this..page 1? Glad it is solved already! |
Re: See The Javascript Code That Is Turning My Brain by lillylove2(f): 3:00pm On Jun 29, 2016 |
michaelwilli my email is not working o |
Have An App Idea? Let's Build Your Next App / My Messanger App(siomkpo) Is Live On Play Store / Microsoft Front Page Or Adobe Dreamweaver?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 28 |