I have a script that fills in certain links when you click on them in an input form.
But i am having one issue.
For some reason i specified the links to call the class linkText and specified certain values to be displayed in the input text field when clicked.
But for some reason the whole link will show including the class and value.
So for example it will display <a class="linkInsert" value="This Value">HTML Link (websites / blogs)</a>
instead of the value which i want which is "This Value"
I just want the value to display but it displays the whole code.
You can see what i mean here jsFiddle
You can also use just
You are placing the html of parent element into the text box.
Instead you should use the following code that injects the value of the linked that is clicked
Change html() into text()
or this one: