How to remove the HTML <P> </P> Tag from CSS -


working in webobjects, result of page :

<p> hello world </p> 

i want remove <p></p> tag result of css. <p> hello world </p> coming under <div class="test">.

is there way apply css class test remove <p> </p> tag.

this not possible using css need jquery or javascript

$('p').contents().unwrap();
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <p> hello world </p>

but can use replacewith replace <p> <div>

$( "p" ).replacewith( "<div class=test> hello world </h2>" );
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <p> hello world </p>


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -