テキストボックスがあり、jquery プラグインを使用して透かしを追加する複合コントロールを作成しています。このような基本的な機能があるとしましょう
$(function () {$('#MyTextBoxID').watermark('Enter your username');});
上記を挿入するために何をする必要があるかを誰かが提案できますか?
ティア!
テキストボックスがあり、jquery プラグインを使用して透かしを追加する複合コントロールを作成しています。このような基本的な機能があるとしましょう
$(function () {$('#MyTextBoxID').watermark('Enter your username');});
上記を挿入するために何をする必要があるかを誰かが提案できますか?
ティア!
起動スクリプトを登録し、それを使用して次のことができます。
Dim cs As ClientScriptManager = Page.ClientScript
If (Not cs.IsStartupScriptRegistered(cstype, csname1)) Then
Dim cstext1 As String = "$(function () {$('#" & Me.ClientID & "').watermark('Enter your username');});"
cs.RegisterStartupScript(cstype, csname1, cstext1, True)
End If