Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Javascript Link Question *important*
New Posts  All Forums:Forum Nav:

Javascript Link Question *important*

post #1 of 3
Thread Starter 
To start off with, I am working with this code:

http://www.dustindiaz.com/add-and-re...th-javascript/

What I have is exactly what is there.

Now, the issue at hand is this. The code works awsome. But I only need it to display 1 line (What I am doing is a page has a text box, but theres a more button at the bottom, when clicked, another line is added.).

That part works fine, but I only need to add one line no more then that. The button to addelement is still there after being clicked once (once being all that is needed as I only have 1 line to append.). What I am asking is there a way to make it such that once the button has been clicked once, I can change it so that it uses the removeelement function?

All I need to know how to do is how to make it such that once a link is clicked (active I belive is the word for it) that the href for that link changes.

If someone could help me out that would be awsome :-D Kinda important.
FX-57 Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Athlon64 FX-57 DFI Lanparty NF4 SLI-DR EVGA 7950GX2 OCZ 2x1 GB 2-3-2-5 
Hard DriveOSMonitorKeyboard
74GB Raptor Windows Vista Ultimate Acer AL2216W 22" Widescreen Saitek Eclipse (Blue) 
PowerCaseMouseMouse Pad
680W Aspire Thermaltake Armor Logitech G5 Icemat v2 
  hide details  
Reply
FX-57 Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Athlon64 FX-57 DFI Lanparty NF4 SLI-DR EVGA 7950GX2 OCZ 2x1 GB 2-3-2-5 
Hard DriveOSMonitorKeyboard
74GB Raptor Windows Vista Ultimate Acer AL2216W 22" Widescreen Saitek Eclipse (Blue) 
PowerCaseMouseMouse Pad
680W Aspire Thermaltake Armor Logitech G5 Icemat v2 
  hide details  
Reply
post #2 of 3
Try reading this -- it may be of use: http://www.thescripts.com/forum/thread90754.html
    
CPUMotherboardGraphicsRAM
AMD X2 3800+ Manchester Asus A8N-SLi SE nForce4 BFG 8800GTS OC 640MB @ 661/2Ghz Nanya 1GB DDR400 
Hard DriveOptical DriveOSMonitor
160 GB WD Caviar Acer DVD+-RW 16x Windows XP Pro x64 Acer AL1916WS 19" Wide 
KeyboardPowerCaseMouse
Logitech Explorer Hiper Type-R Modular 580W Thermaltake Soprano Black Logitech 500 G-Optical 
Mouse Pad
£3 Generic :D 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD X2 3800+ Manchester Asus A8N-SLi SE nForce4 BFG 8800GTS OC 640MB @ 661/2Ghz Nanya 1GB DDR400 
Hard DriveOptical DriveOSMonitor
160 GB WD Caviar Acer DVD+-RW 16x Windows XP Pro x64 Acer AL1916WS 19" Wide 
KeyboardPowerCaseMouse
Logitech Explorer Hiper Type-R Modular 580W Thermaltake Soprano Black Logitech 500 G-Optical 
Mouse Pad
£3 Generic :D 
  hide details  
Reply
post #3 of 3
Thread Starter 
eh, am i missing something? I don't understand how that helps... lol
FX-57 Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Athlon64 FX-57 DFI Lanparty NF4 SLI-DR EVGA 7950GX2 OCZ 2x1 GB 2-3-2-5 
Hard DriveOSMonitorKeyboard
74GB Raptor Windows Vista Ultimate Acer AL2216W 22" Widescreen Saitek Eclipse (Blue) 
PowerCaseMouseMouse Pad
680W Aspire Thermaltake Armor Logitech G5 Icemat v2 
  hide details  
Reply
FX-57 Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Athlon64 FX-57 DFI Lanparty NF4 SLI-DR EVGA 7950GX2 OCZ 2x1 GB 2-3-2-5 
Hard DriveOSMonitorKeyboard
74GB Raptor Windows Vista Ultimate Acer AL2216W 22" Widescreen Saitek Eclipse (Blue) 
PowerCaseMouseMouse Pad
680W Aspire Thermaltake Armor Logitech G5 Icemat v2 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Javascript Link Question *important*