1

テキストボックスがあり、jquery プラグインを使用して透かしを追加する複合コントロールを作成しています。このような基本的な機能があるとしましょう

$(function () {$('#MyTextBoxID').watermark('Enter your username');});

上記を挿入するために何をする必要があるかを誰かが提案できますか?

ティア!

4

1 に答える 1

0

起動スクリプトを登録し、それを使用して次のことができます。


 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



于 2010-06-28T05:13:57.037 に答える