Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Rep Power

    Default onchange method is not calling

    we have hyperlinks
    whenever click on this hyperlink one id value is populating into textbox.
    this is done proper..but after populating this id value automatically onchange method of that textbox has to be called..but onchange method is not to call this?
    Java Code:
    <td width="5%" align='left'><a href="javascript:getFirstRecord();">First</a></td>
    <td width="7%" align='left'><a href="">Prev</a></td>
    <td width="5%" align='left'><a href="">Next</a></td>
    <td width="15%" align='left'><a href="javascript:getLastRecord();">Last</a></td>
    <td width="5%">Bug Id </td>
    <td width='15%' align=''><input type="text" id="bugId" name="bugId" value="${model.bugId}" onchange="showRemarks();"/></td>
    Last edited by srinivasmallabathula; 07-20-2012 at 11:10 AM.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: onchange method is not calling

    This is a Javascript question.
    There's no sign of JSP/Java stuff here.

    Anyway, onchange won't be fired until the field is left (ie loses focus).
    You might prefer onkeypress (I think that's the one).
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. call a jquery function in <s:select > onChange method
    By sunithamm in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-17-2011, 07:58 AM
  2. onchange invoke java object method and submit form
    By marckamga in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 10-14-2010, 06:26 AM
  3. Thread problem, calling method in run method
    By majk in forum Threads and Synchronization
    Replies: 4
    Last Post: 09-27-2010, 11:40 AM
  4. Calling The main method from another method
    By SwissR in forum New To Java
    Replies: 3
    Last Post: 07-27-2010, 11:03 AM
  5. Replies: 29
    Last Post: 09-25-2008, 07:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts