Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Add url to textfield Re: Add url to textfield

#66664
BaylorRae
Member

Okay, here’s an update.

// View the demo
http://jsbin.com/unose

// View the demo’s code
http://jsbin.com/unose/edit

I only changed two things.
1.) The button now has the attribute ‘value’ (e.g. value="http://some-url.com")
2.) jQuery now looks for the attribute ‘value’ in the button clicked

The PHP to create the buttons for links will look like this

Code:
‘ . $row[‘title’] . ‘‘;

}

?>