Ruby on Rails Thursday, April 25, 2013

Scott,

Thanks for your response.

I'll try to be more precise. The way the jquery plugin work is that if
I place a keyword in the function call like so:
<script type="text/javascript">
$('div').highlight('something');
</script>

...all instances of "something" will be highlighted in the 'div'. What
I'm trying to do is make it so that a user can enter a keyword (through
an input field) so that whatever keyword they entered would be
highlighted on the page.

I figured that what might work was to put some variable in the function
and assign the value of the variable through the input field.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment