-1
特定の単語をテキストエリア内の他の単語に置き換えるjavascript関数を作成するのに役立つ必要があります。Javascript:テキストエリア内の特定のキーワードの空白スペースを置換する
私は、入力されたテキストの上に置いワード(複数可)の間の空白を見つけて、テキストエリアに置き換えたい:すべてのヘルプははるかに
ボブに理解されるであろう
<html>
<head>
<title>Replace Specific words in textarea</title>
</head>
<body>
<Form name="frm" method="post" id="frm">
<TextArea name="txtArea1" cols="85" rows="10" ID="Textarea1">
While it was clear that forwarding the material was naughty (and the "culprits" had their wrists smacked), there.
This is one of the#main#ways of using link events. If you have not seen rollover images before, they are images
</TextArea><br>
Input keywords: <Input type="text" name="findwords" value="the main ways" id="text1">
<Input type="submit" name="btnSubmit" value="Submit" id="submit">
</form>
</body>
</html>
:たとえば
もっと正確にしてください。交換後の結果はどうですか? – iArcadia
テキストエリアにある入力キーワードの空白を "#"で置き換えます。たとえば、キーワードの空白スペースだけを入力します。入力テキスト: "主な方法"
–
テキストエリア内のキーワードのインスタンスを考慮に入れて... –