Home › Forums › JavaScript › Add url to textfield › Re: Add url to textfield
November 16, 2009 at 4:19 pm
#66664
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’] . ‘‘;
}
?>