JQuery Find and Replace

Hey, I have a textbox with the values:


The text box is called “MYTEXT”

How can I use JQuery to get the value of MYTEXT and remove the text “30-”?

So far I know how to get the values which is var getID = $(“#MYTEXT”).val(); but dont know how to do the find and replace.

Thanks for your help.

var myText = $('#MYTEXT');
myText.val( myText.val().replace('30-','') );

Thank you so much for that!

PS: That Plugin on your sig looks really cool!

How can i do a search and get?

Let’s say I have a link <a href=“index.php?one=1&two=2”>text</a> and I want to retrieve the value of the variable two from the query string. Any ideas?