Oracle-Application-Express
Oracle Apex Forum
HTML5
Login
 
  • Combobox With Custom Display
  • Combobox
  • IR Actions Menu item plugin
  • Context Menu plugin
  • Jeditable APEX Item
  • Screen saver plugin
  • HTML5 Server-Sent Events
  • Speech/Voice Recognition Item
  • HTML5 Progress Tag
  • Home
  • Search
  • Text Messages (Translation)
  • Warn user before browser close
  • SQL to Json using Ajax
  • Enable RESTful Access
  • Oracle Apex Map
  • Use of ROWID
  • Textfields with clear option
Textfields with clear option
How to
Add this bit of code to your html header of the page


$("document").ready(function() {
$(':text').each(function(index) {
  // Build anchor tag for clear
   var clrLink = ' <a href="javascript:clearVal(\'' + $(this).attr("id") + '\');" class="clr">
<img src="/i/menu/inline_error_16x16.gif" alt="Clear" title="Clear"></a>';
  // Add it after the text items
   $(this).after(clrLink);
  });
});

function clearVal(pId)
{
  $s(pId,'');
  // Do whatever you want here ...
}


Do you want to logout?

Information
Oracle-Application-Express (release 1.0)
18-MAY-2013 11:43:17

You are logged in as: nobody
Current Application: 1983
Current Page No: 5
Current Page Name: Textfields with clear option
URL: http://apex.oracle.com/pls/apex/f?p=1983:5

Page Items:
P5_ROWID:
P5_ID:
P5_PAGE_NAME: nlkmllkm;
P5_TYPE: dlkmgfs;dmg;sldm;
P5_HIGHLIGHTS:
P5_PAGE_ID:
P5_X:
P5_SH: Add this bit of code to your html header of the page $("document").ready(function() { $(':text').each(function(index) { // Build anchor tag for clear var clrLink = ' Clear'; // Add it after the text items $(this).after(clrLink); }); }); function clearVal(pId) { $s(pId,''); // Do whatever you want here ... }
P0_SEARCH:
P0_B:
P0_LINKEDIN:
P0_TWITTER:
P0_FB:
P0_RATING:
View # profile on LinkedIn Follow me on Twitter