-5
Good I’m having an error in my javascript someone can help?
'<a id="showData" onclick="OpenDescriptionModal(\''+ postData[0].replace('#', '') + '\', \'' + editTitle + '\', \''+ description.replace(/"/g, '\'') +'\');" class="btn btn-success" title="View" lang="en" style="margin-top: 5px;"><i class="fa fa-eye iconInsideBtn" aria-hidden="true"></i><span>View</span></a><a style="margin-left: 1em; margin-top: 5px;" onclick="openEditModal(\''+ postData[0].replace('#', '') + '\', \'' + editTitle + '\', \''+ description.replace(/"/g, '\'') +'\');" class="btn btn-success" title="Edit" lang="en"><i class="fa fa-edit iconInsideBtn" aria-hidden="true"></i><span lang="en">Edit</span></a><a style="margin-left: 1em; margin-top: 5px;" onclick="openDeleteModal(\''+ postData[0].replace('#', '') +'\');" class="btn btn-danger" title="Delete" lang="en"><i class="fa fa-times-circle iconInsideBtn" aria-hidden="true"></i><span lang="en">Delete</span></a>'
What’s in
postData
,editTitle
anddescription
?– Marcelo Shiniti Uchimura
@Marcelouchimura are the variables that have the id, title, and Description of a table.
– Gabriel Gomes
I know, man; I want to know the content [facepalm]
– Marcelo Shiniti Uchimura
@Marcelouchimura xD id is an int, the title a string coming from an input, and Description with html code, since I am using the Quill Rich text editor, and this gives me everything that is saved, in html.
– Gabriel Gomes
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Missing_parenthesis_after_argument_list
– hkotsubo
@hkotsubo as far as I can see I’m concatenating everything, but something may be happening to me.
– Gabriel Gomes