2 buttons one has extra features

bursatranspuri

New Member
I have two different buttons. Both of which when clicked runs the JQuery function 'ShowCommentBox'However when the second button is clicked I want to load an additional JQuery function along 'SHowCommentBox' - the additional function allowing extra options on screen.\[code\]<input id="SubmitCommentsForBOQ" type="button" value="http://stackoverflow.com/questions/15603983/Comments" onclick="ShowCommentBox('<%: item.ItemCode %>'')" />\[/code\]Above is the second button I want to also run the\[code\] $("#SubmitCommentsForTwo").click(function () { $("#hiddenBox").show(); });\[/code\], which makes the extra features visible...how can I do this?Thank you for any repliesBelow is the original JQuery: which loads a dialogue box\[code\]function ShowCommentBox(itemIdentifier, labourOrPlant, desc) { id = itemIdentifier; LabouringOrPlanting = labourOrPlant; description = desc; Function.DisplayBox(itemIdentifier); $("#LabourOrPlantDialog").dialog({ modal: true }); }\[/code\]and my other code:\[code\] <div id="LabourOrPlantDialog" title="Comments" style="display:none;"> <table class="detailstable FadeOutOnEdit"> <tr> <th>Item</th> </tr> <tr> <td id="Item"></td> </tr> </table> <br /> <textarea id="ExistingComments" type="text" runat="server" rows="7" cols="30" maxlength="2000"> </textarea> <input id="SubmitComment" type="button" value="http://stackoverflow.com/questions/15603983/Submit" onclick="SubmitButton()" /> <br /><div id="hiddenBox"><input type="text" name="BoqTextBox" id="BoqTextBox" value="http://stackoverflow.com/questions/15603983/7.15" /></div></div>\[/code\]
 
Back
Top