Jump to content

Javascript Question


Recommended Posts

I dont use javascript a ton so this might seem like a stupid question.. but im trying to pass a variable in a function..


>function repopDiv(searchstr) {
 if (searchstr == '') {
 } else {
popDiv(/^*searchstr here*/i,EmailsArray);


searchstr is a string that needs to be examined in the regular expression checking.. but how do I do that? if I do /^searchstr/i, it will look for searchstr.. Not sure exactly how to wrap it..


Thanks everyone!

Edited by jgingras
Link to comment
Share on other sites

Someone please help!! :) I dont know what I can do so that I can get this to work.. if you have experience with regular expressions but dont understand quite what im getting at, please let me know. I need to get this working today!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...