views:

50

answers:

1

Hi everyone!

i'm a newbie in jQuery and i don't know how to do my homework, pls help me !

i have a String EX: this is my text, press here.

Now i put in o block character : [here]

how can a take slipt string and get text in [ ] into variable 'done'?

thankyou !


my HTML here:

<div id="quotacontain">
   <p>this is demo [ string ]</p>
</div>

Jquery:

var temp = $("#quotacontain p").text();
var done = '';

now i want get text in syntax [ ] and get into variable 'done'. But i don't know how to do it :(

+1  A: 

Some documentation that might help:

gnarf
Thanks you !. i found my work in link Regular Expressions !. you save my day :). Thank you so much !
Rueta