Jump to content

Insert opening and closing HTML tag


joecool2005

Recommended Posts

Hi,

I have an html like this

                           <input type="submit" value="Submit" class="zoom_button" />
                            <span class="zoom_results_per_page">
                                <label for="zoom_per_page">Results per page:</label>
                                <select name="zoom_per_page" id="zoom_per_page">
                                    <option selected="selected">10</option>
                                    <option>20</option>
                                    <option>50</option>
                                    <option>100</option>
                                </select><br /><br />
                            </span>

I would like to insert the div tag like this

                      <div class="zoom_searchform">
                            <input type="submit" value="Submit" class="zoom_button" />
                            <span class="zoom_results_per_page">
                                <label for="zoom_per_page">Results per page:</label>
                                <select name="zoom_per_page" id="zoom_per_page">
                                    <option selected="selected">10</option>
                                    <option>20</option>
                                    <option>50</option>
                                    <option>100</option>
                                </select><br /><br />
                            </span>
                        </div>

How can I do that in javascript?

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...