I'm trying to figure the best way to get a form id from the search block form for example. I want grab the id that's in the input field and insert that name in my label tag. For example
would go into
I know you can call the for attributes beginning with
but how do I place that id into a variable then place that variable into my label and output it?