set width for text field in add record jtable -


how can set width in textfield in add record pop menu in jtable ? width narrow , want make more wider. code update in php code :

//updating record (updateaction) else if($_get["action"] == "update") { //update record in database $result = mysql_query("update datapelanggan set pelanggan = '" . $_post["pelanggan"] . "', cabang = " . $_post["cabang"] . " id = " . $_post["id"] . ";");  //return result jtable $jtableresult = array(); $jtableresult['result'] = "ok"; print json_encode($jtableresult); 

many thanks

if want increase width of textfield add width in style in jtable javascript code

fname:{     title: 'first name',     width: '8%',     input: function(data)     {         if(data.record)             return '<input type="text" value="' + data.record.fname + '" id="edit-fname" name="fname" style="width:200px">';         else             return '<input type="text" value="" id="edit-fname" name="fname" autofocus style="width:200px">';     } }, 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -