Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <div data-role=page">
  2. <form method="post">
  3. <input name="search" id="search" value="" placeholder="Buscar" type="search" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Buscar'">
  4. </form>
  5. </div>
  6.  
  7. <div data-role=page">
  8. <form method="post">
  9. <input style='border:1px solid red;' name="search" id="search" value="" placeholder="Buscar" type="search" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Buscar'">
  10. </form>
  11. </div>
  12.  
  13. <form method="post">
  14. <input name="search" id="search" value="" placeholder="Buscar" type="search" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Buscar'" />
  15. </form>
  16.  
  17. var s = '<span class="fakeSearchButton"></span>';
  18. $("#search").parents(".ui-input-search").append(s);
  19.  
  20. $(document).on("click", ".fakeSearchButton", function(){
  21. alert("search icon click");
  22. });
  23.  
  24. .fakeSearchButton{
  25. position: absolute;
  26. display: block;
  27. height: 14px;
  28. left: 0.3215em;
  29. top: 50%;
  30. margin-top: -7px;
  31. width: 14px;
  32. z-index: 200;
  33. }
  34.  
  35. .ui-input-search {
  36. border-color: #7FAF1B !important;
  37. -webkit-box-shadow:rgb(217,255,169) 0px 1px 2px 0px inset;
  38. box-shadow:rgb(217,255,169) 0px 1px 2px 0px inset;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement