Question about inline

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I want to have a link pass a value from a field on a form.  I can do
this by having the href call a javascript function.  I was wondering if
this can be done inline.  The url is

The "Click with function" works and the "Click with inline" doesn't pass
the value.  I have tried many things to get the inline to work, but have
not had success.  Can it be done inline?  If yes, please tell me how?

Re: Question about inline

On 27 Aug, 19:47, sheldonlg <sheldonlg> wrote:
Quoted text here. Click to load it

Both links works in my browsers. Which browser are you using?

Quoted text here. Click to load it

Why are you not using a regular form element?

<form id=3D"the_form" action=3D"foo.php" method=3D"get">
  Text: <input type=3D"text" name=3D"text" />
  <input class=3D"the_link" type=3D"submit" value=3D"Click with button" />

#the_form { display: inline }
#the_form .the_link { border: none; padding: 0; vertical-align:
baseline }

You could also use javascript with an a element to submit the form:

<a href=3D"foo.php?text=3Dno_javascript" onclick=3D"document.the_form.submi=
()">Click with a element</a>

Site Timeline