Jump to content

Recommended Posts

i have the html code below that creates an ajax call that works

i can pass the data contained in id="update_<?php echo $bank_data[$i][11]?>" which is basically a field named after a file id which contains a date in date form 2010-01-01 for example to a javascript query using get element by id

this creates a button in the same box below the input field which i have to then click to make the query

is there a way to eliminate the button and for example doubleclick on the textbox to make the query?

 

 

<td width = "75" align = "center" ><input align = "middle" name="date_update" type="text" id="update_<?php echo $bank_data[$i][11]?>" value="<?php echo $bank_data[$i][1]; ?>" />
<button onclick="update_posteddate(<?php echo $bank_data[$i][11]; ?> )">Update Post Date</button> 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.