Forum
Simple search HTML
Hello,
how do I convert the below into my current html please?
<!-- perch standard html-->
<perch:form id="search" method="get" action="/search.php">
<div>
<perch:label for="q">Search</perch:label>
<perch:input type="search" id="q" />
<perch:input type="submit" value="Search" />
</div>
</perch:form>
<!--my output-->
<form class="form-wrapper cf">
<input type="text" placeholder="Search here..." required>
<button type="submit">Search</button>
</form>
Many Thanks
Thanks for that,
however I am still having difficulty,
my current code for example is: <button type="submit">Search</button>
Would I need to change it to?
<button type="submit"><perch:input type="submit" value="Search" /></button>
In order for me current CSS to pick this up?
Or, what would be an alternative for me?
Ok, change this:
to:
ok nice!,
what would I need to do with:
<input type="text" placeholder="Search here..." required>
would it be:
<input type="text" placeholder="Search here..." required> <perch:input type="cms" />
Also would the code below remain the same?
<perch:form id="search" method="get" action="/search.php" class="form-wrapper cf">
help appreciated
You shouldn't need to change the rest. What problem are you having?
Hello,
Yes your right, all is good!
Thank you