6
rated 0 times
[
8]
[
2]
/ answers: 1 / hits: 46563
/ 12 Years ago, wed, april 4, 2012, 12:00:00
I have a SharePoint list with the following single line of text fields: Title
, Year
and Type or Location
. I want to be able to hide the Type or Location
table row in the default display form. I know that I should create a JavaScript script and put it in Content Editor web part inside DispForm.aspx.
I am not fluent with jQuery syntax, thus I need help with the code, i.e. I don't know how to reference the table row which contains Type or Location
field and its value. Here's what I've done so far, but it doesn't work:
jQuery(document).ready(function($) {
$(input[title='Type or Location']).closest(tr).hide();
});
I know that the input[title='Type or Location']
part is incorrect; at least I think it's that. Could anyone help me out? Thank you.
More From » jquery