Search
Home
Website Services
LetItShine Update Service
YouTube Snip-O-Matic
Support
Terms And Conditions
Website Components & Solutions
Contact Support
Server Status
DNN Support Blog
Action Form Notes
Remote Assistance
LetItShine FileTransfer
Safe Setting Transfer
Forums
Search Forum
Search
Advanced Search
Topics
Posts
Unanswered
Active Topics
Forums
>
DotNetNuke Support
>
DotNetNuke Support
Reply To Topic
Topic:
Add text to the DNN search box
Username:
Security Code:
Enter the code shown above in the box below.
Subject:
RE: Add text to the DNN search box
Message:
[quote] Posted By <span class='af-profile-name'>Deleted User</span> on 3/25/2013 12:28 AM To add test to the search box, like the text shown above in the search box on this page, Go to Admin/Skins/Search.aspx Add the text you want in the box to the line starting with: <asp:Textbox ID="txtSearch" [/quote]
Smilies
Submit
Cancel
Subscribe:
Check the box to receive email notifications for this topic.
Topic Review
Deleted User
New Member
Posts:62
7/31/2013 12:16 AM
Or another way is to paste the code below into notepad and change the content between the quotes on the .val lines to your desired text. There are two of them.
$(document).ready(function () {
$('#dnn_dnnSEARCH_txtSearch').val('Seek and ye shall find...'); //add the search text to the search input
$("#dnn_dnnSEARCH_txtSearch").focus(function () { //clear the default text out of the search input
if ($(this).val() == "Seek and ye shall find...") { $(this).val(''); }
});
});
Name the file something like searchtext.js
Then upload the file into the skin's js folder.
Then insert the following connection to the js file near the top of the skin file
<script type="text/javascript" src="<%= SkinPath %>js/searchtext.js"></script>
Restart the app pool.
Deleted User
New Member
Posts:62
3/25/2013 12:28 AM
To add test to the search box, like the text shown above in the search box on this page,
Go to Admin/Skins/Search.aspx
Add the text you want in the box to the line starting with:
<asp:Textbox ID="txtSearch"