HTML input onfocus & onblur?

后端 未结 5 847
醉话见心
醉话见心 2021-02-06 00:49

ok, today I\'m making a helper HTML function. It looks like this:

function Input($name,$type,$lable,$value= null){
  if (isset($value)) {
    //if (this.value==\         


        
5条回答
  •  北海茫月
    2021-02-06 01:38

    You want this

    
    

    Update: Some newer browsers will do what you want simply by adding the placeholder attribute:

    
    

    Here is the PHP according to your code

    echo <<$lable
    
    END;
    

提交回复
热议问题