Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8451629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:17:30+00:00 2026-06-10T11:17:30+00:00

from bellow code how to remove all p and br via jquery or php.

  • 0

from bellow code how to remove all p and br via jquery or php.

<div id="wpwhoisinside-2">
<div class="swWrap" id="wpwhoisdiv">
<form method="post" style="margin: 0px;" action="#void" onsubmit="wpwhoisform('2'); return false;" name="wpwhoisform2" id="wpwhoisform2">
<p>                         <input type="hidden" id="wpwhoiswidget2" value="Y" name="widget"><br>
                <input type="hidden" value="2" name="number"></p>
<div class="swForm">
                <input type="text" onfocus="this.select();" value="domain" class="swDomain" name="domain" id="wpwhoisdomain2"><br>
                                    <b>.</b><p></p>
<select name="tld" class="swtld">
<option selected="" value="com">com</option>
<option value="com.sg">com.sg</option>
<option value="com.my">com.my</option>
<option value="cl">cl</option>
<option value="ch">ch</option>
<option value="se">se</option>
<option value="net">net</option>
<option value="org">org</option>
<option value="info">info</option>
<option value="biz">biz</option>
<option value="us">us</option>
<option value="co.uk">co.uk</option>
<option value="org.uk">org.uk</option>
<option value="org.my">org.my</option>
<option value="ltd.uk">ltd.uk</option>
<option value="ca">ca</option>
<option value="cc">cc</option>
<option value="edu">edu</option>
<option value="com.au">com.au</option>
<option value="net.au">net.au</option>
<option value="net.my">net.my</option>
<option value="de">de</option>
<option value="ws">ws</option>
<option value="sc">sc</option>
<option value="nl">nl</option>
<option value="be">be</option>
<option value="eu">eu</option>
<option value="co.il">co.il</option>
<option value="co.th">co.th</option>
<option value="org.il">org.il</option>
<option value="mobi">mobi</option>
<option value="asia">asia</option>
<option value="tel">tel</option>
<option value="me">me</option>
<option value="my">my</option>
<option value="tv">tv</option>
<option value="mx">mx</option>
<option value="co.za">co.za</option>
<option value="fr">fr</option>
<option value="ie">ie</option>
<option value="it">it</option>
<option value="jp">jp</option>
</select>
<div class="wpwhoissecureimage">
        8 + 7 =     <input type="text" value="" style="width:25px; font-size:10px; font-weight:bold;" name="total"><br>
        <input type="hidden" value="9bf31c7ff062936a96d3c8bd1f8f2ff3" name="hashtotal">
        </div>
<div><input type="submit" class="swSubmit ui-button ui-widget ui-state-default ui-corner-all" value="Check Domain" name="lookup" role="button" aria-disabled="false"></div>
<div class="swInfo"></div>
<p></p></div>
<p></p></form>
<p></p></div>
<p><script type="text/javascript">
jQuery(document).ready(function() {
    jQuery('.swSubmit').button();
});
</script></p>
</div>

i tried this

<script language='javascript'>
$("#wpwhoisinside-2 p").remove();
$("#wpwhoisinside-2 br").remove();

</script>

but for that inside p content like <input type="hidden" id="wpwhoiswidget2" value="Y" name="widget">also remove. but i just want to remove p and br tag alone nothing else.. can you guys help me please.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:17:32+00:00Added an answer on June 10, 2026 at 11:17 am

    Try:

    $("#wpwhoisinside-2 p > *").unwrap("<p></p>");
    $("#wpwhoisinside-2 br").remove();
    

    And in addition to it if you want to remove empty p tag, then, add to second line:

    $("#wpwhoisinside-2 br, p:empty").remove();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to remove all my debugging printf statements from my code .How can
I'm looking for a convenient way to use jQuery to remove all classes from
How to Remove Badge from the tabbar item i had use below code but
I use the bellow code to load the main menu elements from some CMS,
How can I extract this variable bellow from a website to my android code?
I want to remove all unnecessary commas from the start/end of the string. eg;
I am trying to remove all the objects from the NSMutableArray and I am
I have a class method where I want to perform this piece of code
The code below removes www., etc. from the beginning of websites that are entered
I am able to provide animation to an image button from below code. this.RegisterName(image1.Name,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.